使用最新的 Xcode 在 iOS 3.1.3 中进行测试

发布于 2024-10-06 03:35:41 字数 92 浏览 1 评论 0原文

如何使用最新的 Xcode 版本在 iOS 3.1.3 中测试应用程序?

可以在模拟器中执行此操作吗?如果没有,是否可以将设备降级到 iOS 3.1.3?

How do you test an app in iOS 3.1.3 with the latest Xcode build?

Is it possible to do this in the Simulator? If not, is it possible to downgrade a device to iOS 3.1.3?

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

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

发布评论

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

评论(4

窗影残 2024-10-13 03:35:42

是的,您可以降级设备。它没有得到官方支持,但我已经在两台 3G 上完成了它,并在 3.1.3 上成功进行了测试。

首先找到一个叫RecBoot的工具,由一个叫the0rkus的人开发,只能在Intel mac上运行。加载 3.1.3 软件后,手机将退出恢复模式。

找到适合您设备的 .ipsw 文件,因为您知道它是 iPhone 3/3GS 或 iPod Touch 的不同文件。按照通常的方式通过 iTunes 将该软件加载到手机上,按住 option 键的同时单击“恢复”。等待加载。

当它完成并重新启动时,您会发现 iTunes 抱怨此版本不正确。情况是软件已加载,准备就绪,但缺乏苹果的最终祝福。 RecBoot 将其带出此模式,将手机“唤醒”至正常的准备激活状态。一旦您插入 SIM 卡连接到 iTunes,您就拥有了一部手机,就好像您从未使用过 4.0 版本一样。

太糟糕了,我们不得不求助于黑客来测试旧设备,但我不知道任何其他方法。如果模拟器仍然可以运行 3.1.3,那就太好了;如果设置部署目标能够标记 3.2 之前的功能,那就太好了。

您还可以使用 iPhone SDK 3.1.3 安装较旧的 Xcode 3.2.1,但硬件才是软件是否真正有效的真正考验。鉴于此,您可能可以跳过查找和使用它 - 尽管没有更快的方法来查找 3.1.3 中无法使用的所有内容。安装不同版本的 Xcode 的多个副本没有问题,但最好使用 /Developer/Library/uninstall-devtools 中提供的脚本卸载它们(请阅读每个 Xcode 附带的自述文件)分配)

Yes, you can downgrade a device. It is not officially supported but I've done it on two 3Gs with success for testing on 3.1.3.

First find a tool called RecBoot by someone called the0rkus, runs on Intel macs only. This brings the phone out of recovery mode once you have loaded the 3.1.3 software.

Find the .ipsw file for your device, as you know it is a different file for iPhone 3/3GS or iPod Touch. Load this software to the phone via iTunes in the usual way, holding the option key while clicking "restore". Wait while it loads.

When it finishes and reboots you will find iTunes complains about this version being incorrect. Situation is the software is loaded, ready to go, but it lacks the final blessing from Apple. RecBoot brings it out of this mode, "waking" the phone into normal ready-to-activate state. Once you have gone through connection to iTunes with a SIM inserted you have a phone just as if you had never gone to 4.0.

Too bad we have to resort to a hack to test with older devices but I don't know any other way. It would be nice if the simulator could still run 3.1.3, nice if setting deployment target would flag pre-3.2 features.

You can also install the older Xcode 3.2.1 with iPhone SDK 3.1.3 but the hardware is the true test of whether your software really works. Given that, you could probably skip finding and using it - although there is no quicker way to find everything that you can't use in 3.1.3. There is no problem having multiple copies of Xcode of different versions installed but it is a good idea to uninstall them with the script provided in /Developer/Library/uninstall-devtools (read the readme included with each Xcode distribution)

水染的天色ゝ 2024-10-13 03:35:42

您需要在运行 3.1.3 的设备上测试该应用程序。

You need to test the app on a device running 3.1.3.

也只是曾经 2024-10-13 03:35:42

部署目标是一回事(您设置为 3.0,以便可以在设备上进行测试),

但如果您正在使用特定版本的 SDK 进行调试,则应该拥有相应的 XCode 安装程序。

The deployment target is one thing (that you set to 3.0 so that you can test on the device)

But if you are looking debugging with a specific version of the SDK, you should have the respective XCode installer.

何必那么矫情 2024-10-13 03:35:42

您的模拟器是否有一个标记为“硬件”的菜单,其中包含各种旧操作系统版本的选择?
(我的就是这样。)

就用那个吧。

这不会是 100% 的“实际设备”测试……但它要容易得多。
(无论如何,没有一个模拟器是 100% 测试的。)

Does your simulator have a menu marked "hardware" with a variety of older OS version choices?
(Mine does.)

Just use that.

It won't be 100% "actual device" test... but it's a WHOLE lot easier.
(None of the simulators are 100% tests anyway.)

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