我最近从Xcode3.2.3升级到Xcode4.4+ Mountain Lion (为了在5.1 iOS上测试我的应用程序)。但它似乎只显示了对5.1 iOS模拟器的支持,而不是较旧的模拟器。
那么,有没有可能在老款iPhone/iPAD模拟器(3.2,4.0,4.2)上使用Xcode4.4+ Mountain Lion。
谁能指导我,如何在较旧的模拟器上测试我的应用程序?
谢谢
发布于 2012-08-06 20:40:13
首先,您可以另外下载并安装iOS 5.0模拟器,方法是选择
Xcode->Preferences;

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

本已过时,仅供参考
对于旧的Xcode (iPhone模拟器)版本,过去可以简单地将旧的(不支持的) iPhoneSimulator SDK版本链接到正确的路径,但在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 $ 这实际上似乎是工作的,因为它在模拟器中产生了以下选项;

问题是,在我的机器上,如果选择了其中任何一个不支持的版本,模拟器在启动后就会停止工作。也许还有一种方法..。只是我没有得到这个工作,因为它曾经在较旧的操作系统。
发布于 2012-08-06 20:40:17
Xcode4.4+ Mountain Lion仅支持iOS模拟器5.0及以上版本。然而,你可以安装iOS 3.0和iOS 4.0设备调试支持,这样你仍然可以在运行iOS 3.0或4.0的设备上测试你的应用程序,方法是转到Xcode ->偏好设置->下载->组件。
发布于 2012-08-06 20:38:11
你不能再下载旧的模拟器了-抱歉。但您可以在首选项中下载对旧设备的调试支持。
Xcode - Preferences ->转到Downloads,然后进入Components。在那里,您可以选择几个较旧的设备。
https://stackoverflow.com/questions/11828406
复制相似问题