Xcode 4.3和iPhone模拟器4.2 [英] Xcode 4.3 and iPhone Simulator 4.2

查看:137
本文介绍了Xcode 4.3和iPhone模拟器4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在狮友的Xcode 4.3 中安装iPhone模拟器4.2?
我只能找到如何在Xcode 4.2中安装它,而不是狮子的Xcode 4.3。

Is there a way to install iPhone Simulator 4.2 in Xcode 4.3 for Lion? I only can find how to install it in Xcode 4.2, but not Xcode 4.3 for Lion.

推荐答案

我有找到了将iPhone模拟器4.2安装到Xcode 4.3的方法:

I have found a way to install iPhone simulator 4.2 to Xcode 4.3:

按照说明,但将模拟器安装在临时文件夹中('Developer'文件夹不存在于Xcode 4.3)。

Follow the instructions by Parth Bhatt, but install the simulator in a temporary folder ('Developer' folder doesn't exists in Xcode 4.3).

安装后,转到< tmp_dir> /Platforms/iPhoneSimulator.platform/Developer/SDKs ,你会找到一个名为iPhoneSimulator4.2.sdk的文件。

Once installed, go to <tmp_dir>/Platforms/iPhoneSimulator.platform/Developer/SDKs, and you'll find a file named "iPhoneSimulator4.2.sdk".

打开一个新的Finder窗口并转到 / Applications 和Xcode上的右键,选择显示包内容,导航到 /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs ,你会看到一个.sdk文件,一个安装在Xcode中的每个iPhone模拟器。

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.

将iPhoneSimulator4.2.sdk文件从临时文件夹拖放到Xcode包的SDKs文件夹中。

Drag the "iPhoneSimulator4.2.sdk" file from your temporary folder and drop inside SDKs folder of Xcode package.

重新启动Xcode,这就是全部(您可以删除临时文件夹)。

Restart Xcode and that's all (you can delete the temporary folder).

如果您的项目的部署目标为4.2,那么您将拥有4.2模拟器。

If your project has a Deployment target to 4.2, you'll have the 4.2 simulator available.

这篇关于Xcode 4.3和iPhone模拟器4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆