Xcode Storyboard Contextless Warning: Unsupported Constraint Attribute Configuration

I have this warning, which does not seem to cause any problems at startup, but it was the only warning I have for a while, and I would like it to disappear.

enter image description here

Clicking on it opens the storyboard, but nothing is selected either in the hierarchy of views or in the storyboard. Right-clicking and clicking on β€œview in log” does nothing. Right-clicking and choosing Open As> Source Code resets Xcode every time. Right-clicking on the storyboard from the project navigator and opening it as source code does not show any warning information at the top of the screen, as other warnings did using the storyboard.

I cannot find information about this warning in the SO or Apple documentation. I can find other unsupported configuration warnings, but none with this type of message.

Any idea how I can find the source and resolve this warning?

thanks

Change My particular problem is a bug in the part of Apple that deals with web views, and there is no way around it. This is an incorrect categorization of a warning. If you have this error with similar results when trying to source it like mine, you may encounter the same problem: https://forums.developer.apple.com/thread/63254

However, the JOM answer is incredibly useful for fixing what appears to be the alleged appearance of this warning, and is also very useful for tracking down such issues. Seeing how it provides an appropriate way to resolve this warning, and people are more likely to find this issue when faced with a warning and not faced with the same problem as me, I will mark it as correct.

And for a better SEO warning: "Unsupported configuration of attribute attributes. This may lead to unexpected results at runtime prior to Xcode 5.1"

+8
ios compiler-warnings xcode storyboard
source share
1 answer

Open the assembly log and check the warning by expanding the details by clicking the small window icon on the right side of the warning. At the end you should find something like this:

/ * com.apple.ibtool.document.warnings * / / Users / username / git / folder / project / Collection / Collection.storyboard: 2f5-sJ-euT: warning: Unsupported configuration of restriction attributes. This may cause unexpected results at runtime prior to Xcode 5.1.

Now open this storyboard as source code and find the identifier indicated in the warning. In this case, it is 2f5-sJ-euT . You should find something like this:

 <constraint firstAttribute="centerX" secondItem="ReE-6A-euY" secondAttribute="centerX" id="2f5-sJ-euT"/> 

Now you can check what the problem is. To help you, for example, check where this restriction is by looking at a possible reuseIdentifier object object. It's easier to find it when you open a storyboard in Storyboard format.

In my case, the warning was about a restriction that was no longer required, and I just deleted it. And it’s verified that the application is still working as intended, of course.

+12
source share

All Articles