Ignore custom warning in Xcode 6

I want Xcode to ignore the following warning:

"The automatic preferred maximum layout width is not available on iOS versions prior to 8.0.

Is there any way to tell Xcode not to show this particular warning?

+7
ios xcode ios7 ios8 xcode6
source share
3 answers

Browse to the project file in Xcode and select "Configure Options." Make sure all assembly settings are shown and combined. Scroll down until you see the section "Interface Composer Linker Compiler - Options". To do this, there should be a section of warnings about the show, just set it to "No" and recompile, and the warning should disappear. If it does not just restart Xcode, then the warning should disappear.

Example

+3
source share

You must follow these steps:

Select "Project Build Settings" β†’ "Interface Compiler Compiler" - "Options" β†’ "Show Alerts" β†’ "NO"

Please note: if you want to clear existing warnings, you can clear your project using Shift + ⌘ + k

you can do it by code but don’t know how storyboard works

#pragma GCC diagnostic ignored "-Wwarning-flag" 

Hope this helps you.

+1
source share

If you find a way to remove the --warnings flag for ibtool , you can ignore all warnings from the nib file.

The workaround is to create this storyboard for iOS8.0

enter image description here

Note: Although it removes the warning, but I have never run the application on iOS7, and I do not know what effect this change has.

Also let me know if you find a better solution.

+1
source share

All Articles