Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore specific warning in Xcode 6

I want Xcode to ignore the following warning:

"Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0."

Is there a way to tell Xcode not to show this specific warning?

like image 738
YogevSitton Avatar asked Jul 21 '15 06:07

YogevSitton


2 Answers

Navigate to your project file in Xcode and select Build Settings. Ensure all build settings are showed and it is Combined. Scroll down until you see a section called "Interface Builder Storyboard Compiler - Options". There should be a show warnings section for that, just set it to No and recompile and the warning should go away. If it does not just restart Xcode and then the warning should be gone.

Example

like image 130
Justin Guedes Avatar answered Oct 21 '22 06:10

Justin Guedes


If you find out the way to remove --warnings flag for ibtool then you might ignore all the warnings from the nib file.

The workaround is to build this storyboard for iOS8.0

enter image description here

NOTE: Though it removes the warning but I have never run the app on iOS7 and I don't know what's the impact of this change.

Also do notify me if you find a better solution

like image 34
Inder Kumar Rathore Avatar answered Oct 21 '22 04:10

Inder Kumar Rathore