Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storyboard - Unsupported configuration 8 conflicting constrains

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

like image 417
user1509593 Avatar asked Aug 29 '13 20:08

user1509593


1 Answers

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.

like image 112
Andrew Porritt Avatar answered Nov 07 '22 10:11

Andrew Porritt