Detect incorrect SDK usage

Originator:robnapier
Number:rdar://15048179 Date Originated:21-Sep-2013 11:06 AM
Status:Duplicate/7184689 Resolved:27-Sep-2013 07:34 PM
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Current advice from Apple for supporting older SDKs is to build with the latest SDK while setting "Deployment Target" to the desired target. This is very dangerous because Xcode provides no warnings if you use unsupported calls. The only way you will know that there is a problem is that the system will crash on old releases. The only safe approach is to build using the actual target SDK; that way the compiler will prevent you from using unsupported functionality.

AppCode and Deploymate both provide target SDK verification. This should be built-in functionality in Xcode.

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!