使用哪个 iPhone SDK 来实现兼容性

发布于 2024-09-18 18:20:13 字数 243 浏览 4 评论 0原文

我正在编写我的第一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沧笙踏歌 2024-09-25 18:20:13

您应该始终针对最新的 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.

药祭#氼 2024-09-25 18:20:13

为了能够将您的应用程序上传到应用程序商店,您必须至少使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文