使用哪个 iPhone SDK 来实现兼容性
我正在编写我的第一个 iPhone 应用程序,旨在将其上传到 AppStore,但不明白一件事:
AppStore 上大多数流行的游戏都与 iPhone OS 3.0 或更高版本兼容。我相信我目前已经安装了 iPhone SDK 4.0。
我希望我的应用程序从 3.0 开始具有相同的兼容性,我是否必须在开发中安装和使用早期的 SDK(例如 3.0)才能实现该目标,或者我可以以某种方式使用最新的 SDK?
感谢您的帮助!
i'm writing my first iPhone app with aim to upload it to the AppStore and don't understand one thing:
Most popular games on the AppStore have compatibility with iPhone OS 3.0 or later. I have currently installed iPhone SDK 4.0 i believe.
I want my app to have the same compatibility starting from 3.0, do i have to install and use in development an earlier SDK, like 3.0 to achieve that goal or i can somehow use the latest SDK?
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该始终针对最新的 SDK(目前为 4.1)进行构建。不过,您可以以不同的方式设置最低要求,即 3.0。
You should always build against the most current SDK, that is 4.1 at the moment. You can set your minimum requirement differently though, i.e. 3.0.
为了能够将您的应用程序上传到应用程序商店,您必须至少使用 SDK 4.0 构建它。
然后在构建目标设置中,您可以指定应用程序可以运行的最低操作系统版本 - 检查“iPhone OS 部署目标”设置。
请记住,如果您使用的某些 API 并非在您支持的所有操作系统版本上都可用,您应该对它们进行运行时检查,以避免应用程序崩溃。
To be able to upload your application to appstore you must build it using SDK 4.0 at least.
Then in build target settings you can specify minimum OS version your application can be run on - check "iPhone OS Deployment Target" setting.
Remember that if you use some APIs that are available not on all OS versions you support you should do run-time checks for them to avoid application crashes.