Jef
Jef

Reputation: 4728

illegal configuration error xcode6, can I disable it?

I have a number of projects which support iOs5. When adding a launch.xib file I have an error

error: Illegal Configuration: Auto Layout on iOS Versions prior to 6.0

now everything works fine, I can build and run to my old devices, they don't support the launch.xib file obviously, so they're falling back to the asset catalog for an image just as it ever was, they do not try to load the xib, therefore they don't throw any 'wtf is NSAutolayoutConstraint' type exception.. but the nib being there saves me worrying about the new iPhone6 sizes for start images, as well as any future screen sizes.

But this red ! up top is driving me crazy !! I'm not accustomed to ignoring them, nor to having one on my screen yet having my project happily build and run on all targets... Can anybody please give me a clue how to disable a specific error message in xcode6 (which I view as pointless) . Thanks so much

Upvotes: 2

Views: 1006

Answers (1)

Raptor
Raptor

Reputation: 54212

Turn off Auto Layout in Storyboard settings. Click Main.storyboard on the left, then in right panel 1st Tab, turn off "Auto Layout" (turn off Size Classes of Xcode 6 as well).

Of course, I would recommend you not to support iOS 5 anymore, as Apple has discontinued its support already.

Upvotes: 1

Related Questions