Xcode 5.0.2: Allow turning off warnings from xibtool like we can for llvm

Originator:futuretap
Number:rdar://16167873 Date Originated:26-Feb-2014 02:05 AM
Status:Duplicate/16161674/Open Resolved:
Product:Developer Tools Product Version:Xcode 5.0.2 (5A3005)
Classification:Feature (New) Reproducible:Always
 
This is a duplicate of rdar://16161674
Note: The described warning would also be useful for some auto layout warnings that can't be muted.


Summary:
ibtool (and the Xcode 'Build settings' area that controls its use) have no way to suppress certain warnings/errors, like the llvm compiler has them.

As an example, we have an application that's been shipping boxed, with hardware. The boxes still claim support for 10.7 (and will until they're all sold off). In 10.8, Apple added better Arabic support and we started selling to Arabic countries. So we have XIB files that set the 'Allows Logical Layout Direction' flag. We get warned about that, because our XIBs are still saved for 10.7 compatibility. That's fine, since the boxes we printed in Arabic are new and say 'requires 10.8'. However, now we get five gadzillion warnings whenever the XIBs are built. Since we know it is OK in this case, we want to turn off just this one warning (and only for that one property).

Steps to Reproduce:
1. Create a XIB.
2. In the File Inspector, choose "Builds for: OS X 10.7 and Later" under "Interface Builder Document".
3. Go to the Attributes Inspector for e.g. an NSPopUpButton 
4. Set the "Mirror" setting in to 'In Right to Left Interface' (the error message is very misleading in this case because the name it reports is different than what the UI shows).
5. Build the project and you get a warning message like

/path/to/foo.xib:11672: Allows Logical Layout Direction on Mac OS X versions prior to 10.8

6. Go to the build settings for your target and search for 'xib'.


Expected Results:
7. There should be a bunch of checkboxes to turn on/off individual warnings, or ibtool's man page should document some compiler flags that I can specify under "Other Interface Builder Compiler Flags" to turn off this particular warnings (without hiding any other warning messages for other properties in the same XIBs that may not be available on 10.7.

Actual Results:
7. There is only a general "Show Warnings: Yes/No" toggle, which would hide all warnings and make it too easy to break 10.7 support.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!