Swift - How do you determine the optimal "deployment target" for your iOS app

In Xcode, you can decide the "Deployment Target" yourself, but you can choose to be too old for the application to work stable because some of the methods in your code are supported by the later version of iOS. (for example, select "Deployment Target 8.0", but when running the application on an iOS 8.0 device, the application will crash)

Is there any good way to solve the best deployment target or some tools that can scan all the code to find out the minimum iOS version?

+1


source to share


1 answer


It really is a new feature Xcode 7

, and Swift 2.0

on a fast website:

Swift Apple



On the website, it is listed in Availability

Swift 2.0 has built-in accessibility checking to make it easy to build the best possible app for each target OS version. The compiler will give you an error when using an API too new for your minimum target OS

+2


source







All Articles