Xcode:升级到 Xcode 4.4 后如何取回 4.3 模拟器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11666375/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:02:03  来源:igfitidea点击:

Xcode: How to get 4.3 simulator back after upgraded to Xcode 4.4?

xcodeios-simulator

提问by fifth

Possible Duplicate:
How to install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion

可能的重复:
如何在 Mountain Lion 上将 Simulator SDK 4.3 安装到 Xcode 4.4

I just upgraded to OSX 10.8 and Xcode 4.4, then I found 4.3 simulator was gone away and likely Apple didn't offer link to install it. Is there any hack to get 4.3 simulator back? Thanks.

我刚刚升级到 OSX 10.8 和 Xcode 4.4,然后我发现 4.3 模拟器不见了,可能 Apple 没有提供安装链接。有什么技巧可以让 4.3 模拟器回来吗?谢谢。

回答by mihaipaun

Update: This solution doesn't work anymore on Mountain Lion. If you have to support 4.x I suggest you don't upgrade to ML and stick to Lion and Xcode 4.3.3. But, I'm guessing it's too late now since you're already here and reading this.
Xcode 4.3.3 doesn't work in Mountain Lion.

更新:此解决方案不再适用于 Mountain Lion。如果您必须支持 4.x,我建议您不要升级到 ML 并坚持使用 Lion 和 Xcode 4.3.3。但是,我猜现在已经太晚了,因为你已经在这里阅读了这篇文章。
Xcode 4.3.3 在 Mountain Lion 中不起作用。

If you want the 4.x simulator back into Xcode 4.4 here's what you have to do:

如果您希望 4.x 模拟器回到 Xcode 4.4,那么您必须执行以下操作:

  • Download Xcode 3.2.6 and iOS SDK 4.3from https://developer.apple.com/downloads/(you must be an Apple Developer to have access to that area)
  • Mount the .dmg file
  • Inside the disk there should be an invisible "Packages" folder. To open it use shift + cmd + G (Go To Folder) and type "/Volumes/Xcode and iOS SDK/Packages/"
  • Install iPhoneSimulatorSDK4_x.pkg in a temporary folder
  • Once installed go to your temp folder and you'll find a iPhoneSimulator4.x.sdk file
  • Open a new Finder window and navigate to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform" (you can do this with the same command as above, shift + cmd + G)
  • Drag the iPhoneSimulator4.x.sdk from your temp folder to the SDKs folder of the Xcode package.
  • Restart Xcode and delete your temp folder
  • https://developer.apple.com/downloads/下载Xcode 3.2.6 和 iOS SDK 4.3(您必须是 Apple 开发人员才能访问该区域)
  • 挂载 .dmg 文件
  • 在磁盘内部应该有一个不可见的“Packages”文件夹。要打开它,请使用 shift + cmd + G(转到文件夹)并输入“/Volumes/Xcode and iOS SDK/Packages/”
  • 在临时文件夹中安装 iPhoneSimulatorSDK4_x.pkg
  • 安装后转到您的临时文件夹,您将找到一个 iPhoneSimulator4.x.sdk 文件
  • 打开一个新的 Finder 窗口并导航到“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform”(您可以使用与上述相同的命令,shift + cmd + G)
  • 将 iPhoneSimulator4.x.sdk 从 temp 文件夹拖到 Xcode 包的 SDKs 文件夹中。
  • 重新启动 Xcode 并删除您的临时文件夹

回答by Jann

Xcode 4.4 drops simulator 4.3 by policy. It is no longer in downloads. It DOES offer debug of iOS 3.0-3.2.2 and iOS 4.0-4.1

Xcode 4.4 按政策删除模拟器 4.3。它不再在下载中。它确实提供 iOS 3.0-3.2.2 和 iOS 4.0-4.1 的调试