iOS模拟器仅列出最新的iOS版本。如何设置早期版本 [英] iOS simulator only list the latest iOS version. How can I set earlier versions

查看:147
本文介绍了iOS模拟器仅列出最新的iOS版本。如何设置早期版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档应该能够选择运行模拟器的iOS版本,但是只有最新的4.3.2列在硬件/版本下。

According to the documentation should be able to choose which iOS version the simulator should run, however only the latest 4.3.2 is listed under "Hardware/Version".

帮助说:
要设置模拟环境中使用的iOS版本,请选择硬件>版本,然后选择要测试的版本。

The helps says: "To set the iOS release used in the simulation environment, choose Hardware > Version, and choose the version you want to test on."

我不想支持3.x(虽然它会很好)但至少我想在4.2,4.1和4.0上模拟我的应用程序。
发生了什么事?为什么不列出?

I don't want to support 3.x (although it would be nice) but at least I want to simulate my app on 4.2, 4.1 and 4.0. What's going on? Why aren't they listed?

更新:
我在Lion上,所以我无法安装早期版本的Xcode。在我升级之前,我可以轻松地测试不同的版本。

UPDATE: I'm on Lion so I cannot install an earlier version of Xcode. Before my Upgrade I could test different versions easily.

推荐答案

问题是你没有安装其他可以使用的模拟器SDK 。正如@dorada所提到的,你必须安装一个较旧的Xcode,这实际上是因为你使用Lion而无效。我没有和Lion一起尝试过,但主要是它应该像以前一样使用Snow Leopard。

我正在引用我的另一个答案如何获得一个旧的Xcode(不知道它是否还在工作)

the problem is that you have no other Simulator SDK installed which can be used. As @dorada has mentioned you have to install an older Xcode which in fact doesn't work because you're using Lion. I haven't tried it with Lion but principally it should work like before with Snow Leopard.
I'm referencing to my other answer how to get an older Xcode (don't know if it's still working)

之后你有一个较旧的Xcode版本,安装图像与终端导航到该卷。应该有一个隐藏文件夹 Packages 。打开打开该文件夹。并找到您需要的两个 .pkg 文件(例如 iPhoneSDK4_0 .pkg iPhoneSimulatorSDK4_0.pkg )并安装两者。

After you have an older Xcode version, mount the image an navigate with terminal to that volume. There should be a hidden folder Packages. open that folder with open . and locate the two .pkg files you need (e.g. iPhoneSDK4_0.pkg and iPhoneSimulatorSDK4_0.pkg) and install both.

它们将出现在您的根目录,您必须将它们移动到您的开发人员目录(不要简单地覆盖,它将删除所有其他SDK。转到它应该是的最后一个不同的文件夹 iPhoneSimulator4.0.sdk \ 并复制那一个)

They will appear in your root directory and you have to move them to your Developer dir (don't simply overwrite, it will delete all other SDKs. go to the last different folder it should be iPhoneSimulator4.0.sdk\ and copy that one)

完成(此时我已验证它:它适用于我的狮子。我使用了自3.2.1开始备份的DVD图像。

DONE (and at that point I have verified it: it works on my Lion. I used the dvd image which I have started backup'ing since 3.2.1)

这篇关于iOS模拟器仅列出最新的iOS版本。如何设置早期版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆