RE: Question about debugging OS X Auto Layout
RE: Question about debugging OS X Auto Layout
- Subject: RE: Question about debugging OS X Auto Layout
- From: Lee Ann Rucker <email@hidden>
- Date: Wed, 16 Mar 2016 23:59:51 +0000
- Thread-topic: Question about debugging OS X Auto Layout
Next step I'd do is use the visual debugger; it's not as easy but you can find the view based on the address, or worst case just do something like "po 0x600000120c80".
It'll also show the entire hierarchy, even the invisible pieces, which was invaluable for tracking down the views that had collapsed to size (0,0) due to some unfortunate pre-autolayout legacy behavior.
________________________________________
From: xcode-users-bounces+lrucker=email@hidden [xcode-users-bounces+lrucker=email@hidden] on behalf of Bill Cheeseman [email@hidden]
Sent: Wednesday, March 16, 2016 7:12 AM
To: xcode-users
Subject: Re: Question about debugging OS X Auto Layout
On Mar 16, 2016, at 5:35 AM, Bill Cheeseman <email@hidden<mailto:email@hidden>> wrote:
As to my question, I thought on it overnight and figured out that the only affected constraints would be those from any view in the affected scenes to their superview in the view hierarchy. That will substantially simplify the repair job. I'll try that later today and hope I'm right.
On Mar 15, 2016, at 3:46 PM, Lee Ann Rucker <email@hidden<mailto:email@hidden>> wrote:
Start by giving all your views identifiers, that'll make them easier to track down; the error message will use the name and you can search for it in IB.
Unfortunately, after adding identifiers to all views I can see in my Interface Builder storyboard, the same error message is logged about an invalid constraint, and the error message uses none of the identifiers. This suggests to me that the storyboard file became corrupted when I deleted and reinstalled some segues and renamed some view controllers.
Is it possible for a storyboard file to contain "ghost" constraints that can't be seen in Interface Builder but prevent the application from running? Is there any way to debug this or to remove the errors? This is a large, complex storyboard, and I sure don't want to have to rebuild it from scratch.
Here's the error message again:
"2016-03-15 14:28:14.801 UI Browser[93092:22589120] Failed to set (contentViewController) user defined inspected property on (NSWindow): Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view? That's illegal. constraint:<NSLayoutConstraint:0x608000085910 'NSTabViewController-TabViewLeading' NSTabView:0x100d18d50.leading == NSView:0x600000120c80.leading priority:749> view:<NSView: 0x600000120c80>"
--
Bill Cheeseman - email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden