I know the proper solution is to fix the autolayout issues or put in placeholder constraints but sometimes it would be very nice to have a way of simply blocking the runtime Autolayout warnings like with a build flag or piece of debug code leveraging the private API. Does anyone know how this might be possible?
Asked
Active
Viewed 1,366 times
1
-
1possible duplicate of [Disable autolayout constraint error messages in debug console output in Xcode](http://stackoverflow.com/questions/31239934/disable-autolayout-constraint-error-messages-in-debug-console-output-in-xcode) – Witold Skibniewski Sep 29 '15 at 15:03
-
http://stackoverflow.com/questions/31239934/disable-autolayout-constraint-error-messages-in-debug-console-output-in-xcode – Martin Jacob Mar 08 '17 at 10:45
1 Answers
0
You have to disable the "show warnings" in your xcodeproj.
Select your project -> Build Settings -> Interface Builder XIB Compiler - Options -> Show Warnings -> "NO"
Note: that will remove all your warnings from the interface builder.

tbaranes
- 3,560
- 1
- 23
- 31
-
-
-
Nope :( I suspect there is a private API method you can override but I haven't tried anything yet – Hari Honor Jan 29 '15 at 21:40