安装 XCode 4.5 会删除 iOS Simulator 5.1 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12503575/
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:31:55  来源:igfitidea点击:

Will installing XCode 4.5 remove iOS Simulator 5.1?

iosxcodeios-simulatorxcode4.5

提问by Jonas Stawski

I have 2 machines. On one of them I updated to xcode 4.5, but doing so uninstalled my iOS simulator for 5.1.

我有2台机器。在其中一个我更新到 xcode 4.5,但这样做卸载了我的 iOS 模拟器 5.1。

I'm hesitant to update my other machine as I have a project that requires the 5.1 simulator.

我对更新我的另一台机器犹豫不决,因为我有一个需要 5.1 模拟器的项目。

Are my assumptions correct or did I do something to remove the older simulator without knowing?

我的假设是否正确,或者我是否在不知情的情况下删除了旧模拟器?

回答by Ben Trengrove

You can redownload the simulator in the Xcode preferences.

您可以在 Xcode 首选项中重新下载模拟器。

enter image description here

在此处输入图片说明

回答by joe

Download Xcode 4.3.3 for lion and open the dmg, and click and show package contents,and copy the Contents\Developer\platforms\iPhoneOS.platform\sdks\iPhoneOs5.1sdkfolders into your xcode4.5 Contents\Developer\platorms\iPhoneOS.platform\sdksfolder, and it works

下载lion的Xcode 4.3.3,打开dmg,点击显示包内容,将Contents\Developer\platforms\iPhoneOS.platform\sdks\iPhoneOs5.1sdk文件夹复制到你的xcode4.5Contents\Developer\platorms\iPhoneOS.platform\sdks文件夹中,就可以了