19

is there any flag to suppress Ambiguous Layout or Misplaced views for storyboards in Xcode 5.

I am adding the constraints in code and am just using the views in Interfacebuilder as dummies.

I do not want to apply Xcode Resolve auto layout issues since I am happy how the views appear visually in Interfacebuilder?

jack
  • 1,861
  • 4
  • 31
  • 52
  • 2
    you could add constraints and mark them as placeholders, but I agree a lot of work for something so small – Volker Mar 12 '14 at 12:35
  • 1
    `Interface Builder XIB Compiler - Options`, have an option to disable all warnings, but there is no options for individual files or kind of warnings AFAIK. – A-Live Mar 12 '14 at 12:38
  • I tried it but even setting NO to warnings has no effect on layout constraints... – jack Mar 12 '14 at 13:28
  • well after restarting my computer and setting nterface Builder XIB Compiler - Options WARNINGS Flag = NO the storyboard warnings disappeared thanks Volker and A-Live – jack Mar 13 '14 at 09:07

2 Answers2

17

Select Project Build Settings -> Interface Builder XIB Compiler - Options -> Show Warnings -> set to "NO"

Note that if you wish to clear existing warnings you can clean your project using Shift+⌘+k

NSTJ
  • 3,858
  • 2
  • 27
  • 34
  • 6
    This turns off all IB warnings, not just constraint and layout ones, and that's suboptimal. – NRitH Apr 23 '15 at 18:27
  • I have this option set to no, but still getting stupid warnings f.e. saying that a views frame will be different at runtime (which I can fix, but simply opening IB will bring it back...) – Georg May 12 '17 at 05:56
2

I needed to completely restart Xcode for the

Interface Builder XIB Compiler - Options 
WARNINGS Flag = NO

to be considered!

mangerlahn
  • 4,746
  • 2
  • 26
  • 50
jack
  • 1,861
  • 4
  • 31
  • 52