简体   繁体   English

无法从 Xcode 4 测试 iPhone 3GS

[英]Unable to test for iPhone 3GS from Xcode 4

I'm having a weird situation because I'm unable to run the simulator for iPhone below the versions of 4.0 and iPad 3.2.我遇到了一个奇怪的情况,因为我无法运行低于 4.0 和 iPad 3.2 版本的 iPhone 模拟器。 I have set IPHONEOS_DEPLOYMENT_TARGET = 3.1 but still unable to do that.我已经设置 IPHONEOS_DEPLOYMENT_TARGET = 3.1 但仍然无法做到这一点。 I'm using Xcode 4.02, build 4A2002a.我正在使用 Xcode 4.02,构建 4A2002a。 Any suggestions?有什么建议么?

The latest version of Xcode will always only contain the latest version of the iPhone SDK.最新版本的 Xcode 将始终只包含最新版本的 iPhone SDK。 This means that if you upgraded your 3.0 install of Xcode to 4.0 (or have only ever downloaded Xcode post the iOS 4 release) you won't be able to run iOS 3 in the simulator. This means that if you upgraded your 3.0 install of Xcode to 4.0 (or have only ever downloaded Xcode post the iOS 4 release) you won't be able to run iOS 3 in the simulator.

You will either need to find a device that's still running iOS 3, or obtain an old version of Xcode that contains a 3.x SDK and install it alongside the current one.您将需要找到仍在运行 iOS 3 的设备,或者获取包含 3.x SDK 的旧版本 Xcode 并将其与当前版本一起安装。 You can download these via Apple's developer site, some nice instructions can be found here:您可以通过 Apple 的开发者网站下载这些内容,可以在此处找到一些不错的说明:

http://iosdevelopertips.com/xcode/download-and-install-older-versions-of-xcode-xcode-previous-releases.html http://iosdevelopertips.com/xcode/download-and-install-older-versions-of-xcode-xcode-previous-releases.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM