Xcode: Provide Warnings if App might Crash on devices with previous iOS version
||Date Originated:||March 16, 2013|
Compiling with "Latest SDK" allows developers to make use of new functionality in the latest SDKs, but if the deployment target allows for execution on earlier iOS versions then there are many scenarios where usage of new functionality or even constants might lead to a crash.
The IDE should detect scenarios where the developer forgot add the appropriate checks if functionality exists (e.g. respondsToSelector) and point out code where a crash is inevitable.
That such functionality is possible is proven by a newly released app called Deploymate (http://www.deploymateapp.com) which scans an Xcode project and flags such problems.
From personal experience I can say that even though we developers KNOW about having to check for these scenarios and also test on older supported iOS versions it DOES happen and the result is always embarrassment for having shipped an app that crashes. By baking such a tool into the Xcode IDE it would save us this embarrassment.
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!