I am using storyboard autolayout. I am noticing today, while compiling a warning message
MainStoryboard_iphone.storyboard
Unsupported Configuration
8 conflicting constraints
Clicking on warning takes to storyboard, but not to view which is a problem. Is there a way to figure out which view/control has the problem
Thanks
Right click on the "8 conflicting constraints" and select "Reveal in log". There should be a line with something like the following in your log:
/path/to/storyboard/Storyboard_iPad.storyboard:8or-pl-jNO: warning: 2 conflicting constraints
The part between the colons between the storyboard path and the warning (8or-pl-jNO in my case) is the ID of the constraint that caused the issue.
To find the constraint, right click on your storyboard file in the project navigator, then Open As -> Source Code, then search for the ID of the constraint. You should then be able to find what View it is contained in in the XML, then you can switch back to Interface Builder (Open As -> Interface Build - iOS Storyboard), then find the view that contained the constraint, and find the constraint that caused the problem. You can select the constraints in the document outline, then check their ID in the Identity Inspector at the right hand side, under the Document section, named Object ID.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With