Xcode Storyboard warning: Constraint referencing i

2019-01-20 22:06发布

问题:

This warning happens in Xcode 6.1. Anyone have ideas what does this warning mean and what will happen with it? Many thanks!

Below is a screenshot with the warnings opened in source code"

How to find which constraint causes the warning? Xcode does not tell you which constraint is the problem.

回答1:

This warning can be annoying and happens as of Xcode 6.1.1. The main problem is that you can not easily find the referenced constraint by clicking on the warning. I guess this is a bug and will get fixed sooner or later.

However, in the meantime you can use this little workaround:

Step 1: Detect annoying warning