Xcode 4.3 和 iPhone 模拟器 4.2
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9342701/
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
Xcode 4.3 and iPhone Simulator 4.2
提问by Nebary
Is there a way to install iPhone Simulator 4.2 in Xcode 4.3for Lion? I only can find how to install it in Xcode 4.2, but not Xcode 4.3 for Lion.
有没有办法在 Xcode 4.3for Lion 中安装 iPhone Simulator 4.2 ?我只能找到如何在 Xcode 4.2 中安装它,而不是 Xcode 4.3 for Lion。
回答by Asilisoft
I have found a way to install iPhone simulator 4.2 to Xcode 4.3:
我找到了一种将 iPhone 模拟器 4.2 安装到 Xcode 4.3 的方法:
Follow the instructionsby Parth Bhatt, but install the simulator in a temporary folder ('Developer' folder doesn't exists in Xcode 4.3).
按照Parth Bhatt的说明进行操作,但将模拟器安装在临时文件夹中(Xcode 4.3 中不存在“Developer”文件夹)。
Once installed, go to <tmp_dir>/Platforms/iPhoneSimulator.platform/Developer/SDKs
, and you'll find a file named "iPhoneSimulator4.2.sdk".
安装后,转到<tmp_dir>/Platforms/iPhoneSimulator.platform/Developer/SDKs
,您将找到一个名为“iPhoneSimulator4.2.sdk”的文件。
Open a new Finder window and go to /Applications
and right-button on Xcode, select show the package contents, navigate to /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
, you will see a .sdk files, one for each iPhone simulator installed in Xcode.
打开一个新的 Finder 窗口,然后/Applications
在 Xcode 上右键单击,选择显示包内容,导航到/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
,您将看到一个 .sdk 文件,每个安装在 Xcode 中的 iPhone 模拟器都有一个文件。
Drag the "iPhoneSimulator4.2.sdk" file from your temporary folder and drop inside SDKs folder of Xcode package.
将“iPhoneSimulator4.2.sdk”文件从临时文件夹中拖放到 Xcode 包的 SDKs 文件夹中。
Restart Xcode and that's all (you can delete the temporary folder).
重新启动 Xcode,仅此而已(您可以删除临时文件夹)。
If your project has a Deployment target to 4.2, you'll have the 4.2 simulator available.
如果您的项目的部署目标为 4.2,您将可以使用 4.2 模拟器。
回答by Jaroslav
Go to "Preferences -> Downloads tab -> Components tab" and install what You need. At the moment it lets me download 4.3 and 5.0 simulators.
转到“首选项 -> 下载选项卡 -> 组件选项卡”并安装您需要的内容。目前它让我下载 4.3 和 5.0 模拟器。
回答by rakeshNS
I think its not possible. You can just download and install the SDK provided by Apple
我认为这是不可能的。您只需下载并安装 Apple 提供的 SDK