> On Apr 28, 2015, at 8:55 AM, Zack Morris <[email protected]> wrote:
> 
>> On Apr 28, 2015, at 8:26 AM, Fritz Anderson <[email protected]> wrote:
>> 
>> On 27 Apr 2015, at 8:56 PM, Zack Morris <[email protected]> wrote:
>> 
>>> Hi I just upgraded Xcode to 6.3.1 and now when I go to Editor->Simulated 
>>> Screen, the menus to the right of iPhone 3.5-inch through iPhone 5.5-inch 
>>> don’t exist.  I tried creating a new project and disabling “Use Size 
>>> Classes” in the File Inspector but they still don’t show.
>> 
>> I’m not doubting you, but I haven’t found a way to get “Simulated” to appear 
>> in any Xcode  6.3.1 menu. There is no “Editor” menu in the Simulator at all.
>> 
>> I just now created a single-screen iPhone project, leaving Auto Layout on. 
>> Regardless of whether Size Classes were on, the Attributes inspector for the 
>> view controller offered Simulated Metrics > Size, including all current 
>> iPhone form factors, plus a few others. But that isn’t the Editor menu, and 
>> the form factors _are_ there.
>> 
>> You might experiment with the Devices organizer (sh-cmd-2) to see what’s in 
>> the list of simulators. I lost all of them a few versions back. If you’re 
>> missing something, click the + button at bottom-left, and add what you need.
>> 
>> I don’t know if that would have any influence on what Interface Builder 
>> would show you.
>> 
>>      — F
> 
> Sorry I should have been more specific, this is in Xcode not the Simulator.  
> When I first created the project, clicked Main.storyboard and clicked the 
> primary View, I saw Xcode->Editor->Size Class->Any Width->Any Height.  Then 
> when I disabled “Use Size Classes” in the File Inspector, when I went to the 
> menubar I saw  Xcode->Editor->Simulated Screen->iPhone 3.5-inch but no other 
> submenu appears for me to choose Portrait or Landscape.  Here is a screen 
> capture:
> 
> http://postimg.org/image/bdbmv8wdp/
> 
> This is frustrating because believe it or not I upgraded Xcode last night 
> because I was having problems with constraints being corrupted, so for 
> example I’d have to recreate a UIImageView and set the 4 outer constraints to 
> match the parent view because the current UIImageView wouldn’t expand to the 
> size of the screen (even though both views and constraints were identical as 
> far as I could tell).  I was hoping it was just a bug with Interface Builder, 
> so I did a double take when this menu was missing, because it was so specific 
> of a bug and hindered what I was doing so precisely.  It’s kind of funny I 
> suppose, one of the more ironic bugs I’ve hit in a while.  But also 
> completely exhausting because all I do is slog through stuff like this 
> anymore :-(  I will try to work around it using Size Classes I guess and then 
> disable them when I’m done or something.
> 
> Thanks for your help,
> 
> Zack Morris

Just wanted to let everyone know that I found a workaround.  Even though 
Xcode->Editor->Simulated Screen->iPhone 3.5-inch etc are missing their 
submenus, I remembered that simulated metrics also work.  So click a view 
controller (NOT its subview), then choose the fourth icon in the right side bar 
(Attributes Inspector) and show Simulated Metrics.  There you can choose the 
size of device you want from the Size popup menu.

Freeform is nice because you can click the next tab over and choose any 
dimensions you want, which allows for making truly fluid layouts that use the 
constraints’ system of linear equations to work on any screen, since the 
dimensions will almost certainly change in the future as Apple adds more 
devices.

* This bug cost me many days of angst as I debated trying to do the editing 
from my other partition (which has an early version of Xcode) or reinstalling 
my OS and restoring the Time Machine backup I made before I upgraded Xcode.

* There is still another bug where when I change the simulated device 
dimensions, my views don’t automatically resize based on their constraints.  If 
I highlight a view and Editor->Resolve Layout Issues->Update Frames, it works 
for Selected Views but not All Views.  I can prove the bug is real because if I 
create a fresh view and set identical constraints, it resizes correctly when 
simulated metrics change.  I think there might be stale metadata attached to my 
views in the storyboard XML, possibly from a previous version of Xcode, that 
prevents this from working properly.  Since I have 13 view controllers and many 
hundreds (thousands?) of views in the storyboard, there is no way that I can 
rebuild each one by hand.

Apple is going to need to do better here now that Microsoft is pushing their 
Visual Studio suite to the Mac.  I understand that there is little money to be 
made by optimizing and debugging existing software, but Apple has the resources 
to do just exactly that.  I think Apple should consider retiring 
http://bugreport.apple.com and moving to a strictly human reporting system, 
where dedicated staff (not developers, they are busy enough!) watch the Apple 
mailing lists as well as Stack Overflow and other sites for bugs.  There is 
currently too much friction and too little transparency in this process.

P.S. I love you Apple.  I’m not mad, I’m just disappointed.

Zack Morris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to