Which version of the iOS SDK should I use?

断了今生、忘了曾经 提交于 2020-01-15 08:26:49

问题


Please tell me which version of the iOS SDK i should use so that my app works on iPhone 3.0 or later.


回答1:


There are two different concepts you should be aware of:

The Base SDK

This is what you use to build your application. The most recent release is 4.2 so you should use that to build your applications against.

The iOS Deployment Target

This is the target version of iOS you are building for. In your case, you set that (in Project or Target settings of Xcode) to "iOS 3.0".

The rest is up to you. You are, of course, building for many versions of the SDK, so if you use something that was introduced in any SDK after 3.0, you need to test for that functionality explicitly.




回答2:


This is not a question of "which to use" but a question of "which one you have to use to get your apps accepted by apple", and the answer for that is: Use the newest one marked stable that is available to you. Apple accepts only Apps submitted for the AppStore build with one of the latest 2 (or so) Versions.

For setup see the answer of Typeoneerror and be aware, that you can build with a newer Base SDK (in fact you have to) but the compiler will not warn you if you use functions that are not available in your "Deployment Target", so you will have to test your app with a device that has the old iOS version installed to be sure it doesn't crash!



来源:https://stackoverflow.com/questions/4264894/which-version-of-the-ios-sdk-should-i-use

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!