iPhone 2.2.1 到 3.0 过渡最佳实践
Apple 现在要求应用程序开发人员提交既针对 2.2.1 又针对 3.0 构建的应用程序。 我(我想大多数小型/兼职开发人员)只有一部 iPhone,并且由于升级到 3.0 是不可逆转的,因此我想了解一些关于在过渡期间最大限度地降低风险的最佳实践的一些想法。
我知道没有万无一失的方法可以在两种操作系统上进行完整的回归测试,但是任何关于如何最大限度地减少回归的想法都会有所帮助。
以下是苹果公司的具体内容:
数以百万计的 iPhone 和 iPod touch 客户将转向 iPhone OS 3.0 这个夏天。 从今天开始,大家 向 App Store 提交的内容将是 在 iPhone 的最新测试版上进行了审查 操作系统3.0。 如果您提交的应用程序不是 兼容iPhone OS 3.0,它将 不予批准。
App Store 中的现有应用程序应该 已经在 iPhone OS 3.0 上运行,无需 修改,但你应该测试你的 iPhone OS 3.0 的现有应用程序 确保不存在兼容性 问题。 iPhone OS 3.0之后 可供客户使用的任何应用程序 可能与 iPhone OS 3.0 不兼容 从 App Store 中删除。
Apple is now requiring app developers to submit apps that target 2.2.1 but also build for 3.0. I (and I imagine a large majority of small/part-time developers) only have one iPhone and since the upgrade to 3.0 is irreversible, I wanted to get some thoughts out there as to what are some best practices for minimizing risk during the transition.
I understand there is no foolproof way of doing full regression testing on both OSes, but any thoughts on how one might minimize regressions would be helpful.
Here's Apple's exact text:
Millions of iPhone and iPod touch
customers will move to iPhone OS 3.0
this summer. Beginning today, all
submissions to the App Store will be
reviewed on the latest beta of iPhone
OS 3.0. If your app submission is not
compatible with iPhone OS 3.0, it will
not be approved.Existing apps in the App Store should
already run on iPhone OS 3.0 without
modification, but you should test your
existing apps with iPhone OS 3.0 to
ensure there are no compatibility
issues. After iPhone OS 3.0 becomes
available to customers, any app that
is incompatible with iPhone OS 3.0 may
be removed from the App Store.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
除非您有两台设备,否则您确实无法在一台设备上同时针对 2.21 和 3.0 进行测试。 如果这确实很重要,您可以考虑 iPod Touch(假设您的应用程序不需要 iPhone)。
就模拟器而言,一旦安装了 3.0 sdk,您将无法再构建针对 2.2.1 的版本。 旧的 2.2.1 构建目标被 3.0 目标取代。 为了支持两者,您应该考虑构建一个保留 2.2.1 sdk 的虚拟机。
不过,我同意亚历克斯的观点……不需要考虑支持这两个平台。 3.0 很稳定,从今天的苹果邮件中可以清楚地看出,就测试和发布而言,它现在是主要焦点。 兼容性。
编辑 2009 年 5 月 17 日:这篇文章之后我了解到的一件事是,在 Mac 上,您无法虚拟化 Leopard 客户端操作系统。 Apple 只允许您在虚拟机中运行 OS X 的服务器版本。 恕我直言,这确实限制了软件开发人员作为一个群体等,我希望这种情况最终能够改变。
You really can't test on a device against both 2.21 and 3.0 unless you have two devices. If that's really important, you can think about an iPod Touch (assuming your app doesn't require an iPhone).
As far as the simulator, once you install the 3.0 sdk you won't be able to build targeting 2.2.1 any longer. The old 2.2.1 build target gets replaced by a 3.0 target. To support both, you should think about building a virtual machine that retains the 2.2.1 sdk.
However, I agree with Alex... not much need to think about supporting both platforms. 3.0 is solid, and it's clear from today's Apple mail that it's now the major focus, as far as testing & compatibility.
Edit 5/17/09: One thing I learned after this post is that on the Mac, you can't virtualize the Leopard client OS. Apple only allows you to run the server version of OS X in a virtual machine. IMHO, this really limits software developers as a group, among others, and I hope this is changed eventually.
您将手机从 2.2.1 升级到 3.0 有何顾虑? 最新的修订版似乎或多或少是可靠的。
What is your concern about upgrading your phone from 2.2.1 to 3.0? The latest revision seems more or less solid.
我在 iPhone 开发中心发现了这个可能有用的文档: 技术注意TN2246
I came across this doc on the iPhone Dev Central that might be useful: Technical Note TN2246