I/we have a project with base SDK 8 but deployment target 7.1.
Somewhere, someone then used NSCalendar
's compareDate:toDate:toUnitGranularity:
, which was added in iOS 8.0, which caused the app to crash AFTER QA, after having been submitted to the App Store and after review. :(
I was wondering if there is a way to get Xcode/the compiler to warn on such API-usages. Or at least when running Analyze
in Xcode.
This post How to use xcode compiler warnings to determine minimum IOS deployment target I found is quite old. I was wondering if there is an easier way than manually running against older versions than base SDK.