1

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?

Hari Honor
  • 8,677
  • 8
  • 51
  • 54
  • 1
    possible 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 Answers1

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