在 Xcode 上,您可以自行决定“部署目标”,但您可能会选择太旧的版本来稳定运行应用程序,因为您的代码中的某些方法已被更高版本的 iOS 支持。 (例如选择 Deployment Target 8.0,但是当你在 iOS 8.0 版本的设备上运行应用程序时,应用程序会崩溃)
有没有什么好的方法来决定最佳的Deployment Target,或者有什么工具可以扫描整个代码来了解iOS的最低版本?
最佳答案
这实际上是 Xcode 7
和 Swift 2.0
的一个新特性,参见 swift 网站:
在网站上,Availability
Swift 2.0 has built-in availability 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
关于ios - Swift - 你如何决定你的 iOS 应用程序的最佳 "Deployment Target",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31720554/