4.3 应用程序无法在运行 iOS 4.2.1 的 3G iPhone 上运行?

发布于 2024-12-05 00:20:46 字数 373 浏览 0 评论 0原文

我对此还很陌生,所以如果这是一个愚蠢的问题,请对我宽容一些。我将基础 SDK 设置为 4.3,部署目标设置为 4.0,因此从理论上讲,它应该在介于两者之间的所有内容上运行。该应用程序在 4.0 到 4.3 之间的所有 iPad 和 iPhone 模拟器版本上都可以正常运行。然而,当我将 .ipa 文件上传到 testflightapp.com 并且有人在运行 OS 4.2.1 的 iPhone 3G 上测试它时,它似乎在启动时崩溃了。由于它在同一版本的模拟器上运行良好,这让我觉得项目设置中有些东西我没有做对。我已经浏览了 4.3 升级说明,并且没有使用任何添加的功能,因此这似乎不是我的问题。设置基础 SDK 和部署目标是我为不同 iOS 版本定制项目时所做的唯一事情。我还可以尝试其他什么方法让它在 iPhone 上运行吗?

I'm fairly new to this so please go easy on me if this is a dumb question. I set the base SDK to 4.3 and deployment target to 4.0 so in theory, it should run on everything in-between. The app works with no problems on all iPad and iPhone simulator versions between 4.0 to 4.3. However, when I uploaded the .ipa file to testflightapp.com and someone tested it on an iPhone 3G running OS 4.2.1, it seems to crash on launch. Since it runs fine on the same version of the simulator, this makes me think there is something in project settings I haven't done right. I've looked through the 4.3 upgrade notes and I'm not making use of any of the added features so that doesn't seem to be my problem. Setting the base SDK and deployment target were the only things I've done in terms of customizing the project for different iOS versions. Is there anything else I could try to make it run on that iPhone?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

邮友 2024-12-12 00:20:46

您很可能正在使用 4.2.1 中尚不存在的 API 方法。因此,当您尝试在那里运行它们时,应用程序会崩溃。如果您要求测试人员检查他们的日志,您可能会了解可能出现的问题。

编辑:呃,抱歉,我刚刚看到它在模拟器中运行良好。您能否获取崩溃消息以给我们更多提示?

Most probably you're using API methods that doesn't exist in 4.2.1 yet. So when you try to run them there, the application crashes. If you ask your tester to check their log, you might get an idea of what could be the problem.

EDIT: Urgh, sorry, I just saw that it runs fine in the simulator. Can you get the crash message to give us more hints about it?

月下凄凉 2024-12-12 00:20:46

确保您尝试运行应用程序的所有设备都列在 iOS 配置中门户。使用 iOS 帮助文档 确保您构建的应用程序满足所有必要的开发要求。

此外,在设备上启用“开发人员日志记录”(在设置应用中),并通过 xCode 的“管理器”中的“设备”选项卡将日志导入 xCode。

如果您目标 iOS 版本是 4.0,那么即使基础 SDK 是 4.3,它也应该在 4.0+ 的任何版本上运行。如果您使用目标版本不可用的类/方法/功能,Xcode 会警告您(假设您在 Xcode 中启用了实时问题)。

Make sure all devices that you are trying to run the App on are listed in the iOS Provisioning Portal. Check your certificates and provisioning profiles in xCode and your keychain with the iOS Help Documents to ensure that you have built the App with all the necessary dev requirements.

Also, Enable 'Developer Logging' on the device (in the Settings App) and import the logs into xCode via the 'Devices' tab in xCode's 'Organizer'.

If your target iOS version is 4.0, then it should run on anything from 4.0+ even if the base SDK is 4.3. Xcode will warn you if you use a class/method/feature that is not available for the target version (assuming you have live issues enabled in xcode).

旧伤慢歌 2024-12-12 00:20:46

我弄清楚那是什么(忘了回到我的问题)。我遇到了看门狗,如果应用程序在启动 20 秒后没有出现,它就会关闭应用程序。由于它是一部装有 iOS4 的 iPhone 3G 以及一堆在后台运行的东西,所以这个人基本上使用的是最慢的设备。

I figured out what it was (forgot to come back to my question). I was running into the watchdog which closes apps if a few doesn't appear 20 seconds after launching. Since it was an iPhone 3G with iOS4 and a bunch of stuff running in the background, the guy was basically using the slowest device possible.

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