是否可以使用Xcode 4.4 + Mountain Lion的旧版iPhone / iPAD模拟器(3.2,4.0,4.2)

时间:2012-08-06 12:35:53

标签: iphone ipad xcode4.4

我最近从Xcode 3.2.3升级到Xcode 4.4 + Mountain Lion(为了在5.1 iOS上测试我的应用程序)。但它似乎只显示支持5.1 iOS模拟器而不是旧版本。

那么,是否可以使用Xcode 4.4 + Mountain Lion的旧版iPhone / iPAD模拟器(3.2,4.0,4.2)。

有人可以指导我,如何在旧模拟器上测试我的应用程序?

由于

3 个答案:

答案 0 :(得分:4)

首先,您可以通过选择

来下载和安装iOS 5.0模拟器

Xcode->偏好; enter image description here

然后导航到“下载”并点按iOS 5.0模拟器上的“安装”。

enter image description here


这已经过时而且需要参考

使用较旧的Xcode(iPhone模拟器)版本,过去可以简单地将较旧(不受支持的)iPhoneSimulator SDK-Versions链接到正确的路径,但在Mountain Lion下似乎已停止工作。只是为了提供一些关于如何完成的参考;

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ ln -s /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk iPhoneSimulatorh4.3.sdk
root@lobomacpro-4 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ ls -la
total 40
drwxr-xr-x  9 root  wheel  306 Aug  6 14:59 .
drwxr-xr-x  7 root  wheel  238 Jul 26 23:26 ..
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:58 iPhoneSimulator3.2.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:58 iPhoneSimulator4.0.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk
drwxrwxr-x  8 root  admin  272 Oct 28  2011 iPhoneSimulator5.0.sdk
drwxr-xr-x  8 root  wheel  272 Jul 26 23:26 iPhoneSimulator5.1.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:58 iPhoneSimulatorh4.1.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:59 iPhoneSimulatorh4.2.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:59 iPhoneSimulatorh4.3.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
root@lobomacpro-4 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ 

这实际上似乎有效,因为它会导致模拟器中的以下选项; enter image description here

麻烦的是,在我的机器上,如果选择了任何不支持的版本,模拟器会在启动后停止工作。也许还有一种方法......只是我没有像以前的操作系统那样使用它。

答案 1 :(得分:1)

Xcode 4.4 + Mountain Lion仅支持iOS模拟器5.0及更高版本。 但是,您可以安装iOS 3.0和iOS 4.0设备调试支持,这样您仍然可以通过转到Xcode - >来测试运行iOS 3.0或4.0的设备上的应用程序。偏好 - >下载 - >组件。

答案 2 :(得分:0)

你不能再下载旧的模拟器了 - 抱歉。 但您可以在首选项中下载旧设备的调试支持。

Xcode - 偏好设置 - >转到下载,然后转到组件。在那里你可以选择几个旧设备。

相关问题