将ios 5模拟器安装到xcode 5.1? [英] Install ios 5 simulator to xcode 5.1?
问题描述
我目前正在使用xcode 5.1和Mac 10.8.5。但我不能在这个xcode中安装ios模拟器?任何人告诉我如何安装ios 5模拟器?
伙计,这个真的让我生气今天我从Xcode 5.0升级到Xcode 5.1,发现我不再拥有功能性的iOS 5.1模拟器了。在软件更新过程中有 nothing 给了我任何抬头,这将禁用iOS 5.0 / 5.1模拟器。坏苹果!不好!</ p>
无论如何,这是我提出的解决方法。看起来很干净。
- 我注意到在
〜/ Library / Caches / com.apple.dt.Xcode中/下载
有一个旧文件,名为Xcode.SDK.iPhoneSimulator.5.1-5.1.dmg
(感谢上帝,我从未清除过该缓存目录)。 - 我双击此磁盘映像进行挂载,然后双击其中的.pkg文件。然后包安装程序将内容放入
/ Platforms
的子目录中。 - 然后移动
/ Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator5.1.sdk
into/Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
并重新启动Xcode。
Bam。完成。回到商业中。
注意:另一种方法,如果你碰巧对整个系统进行彻底的Time Machine备份,就像Pandey Laxman先前指出的那样,只是为了恢复来自旧备份的 /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
的内容。在我的情况下,我无法做到这一点,因为我的开发系统是MacBook Air,我通过Time Machine备份到永久安装的32GB SanDisk Cruzer Fit USB闪存驱动器上(以及两个额外的Time Machine备份)单独的网络驱动器)。无论如何,因为备份驱动器相对较小,当我第一次在这个系统上设置Time Machine时,我从我的备份中排除了 / Applications
(我不建议这样做) )。
I am currently using xcode 5.1 with Mac 10.8.5. But i can not install ios simulator in this xcode? any one tell me how to install ios 5 simulator ?
Man, this really made me angry today when I upgraded from Xcode 5.0 to Xcode 5.1 and discovered that I no longer had a functional iOS 5.1 simulator. There was nothing in the Software Update process that gave me any heads-up whatsoever that this would disable iOS 5.0/5.1 simulators. Bad Apple! Bad!
Anyway, here's the workaround I came up with. It seems pretty clean.
- I noticed that in
~/Library/Caches/com.apple.dt.Xcode/Downloads
there was an old file sitting around calledXcode.SDK.iPhoneSimulator.5.1-5.1.dmg
(thank god I never cleared out that cache directory). - I double-clicked this disk image to mount it, and then double-clicked the .pkg file inside that. The package installer then placed the contents into a subdirectory of
/Platforms
. - I then moved
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
into/Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
and restarted Xcode.
Bam. Done. Back in business.
Note: Another approach, if you happen to have a thorough Time Machine backup of your full system, as Pandey Laxman pointed out earlier, is simply to restore the contents of /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
from an older backup. In my case, I wasn't able to do this because my development system is a MacBook Air that I keep backed via Time Machine up onto a permanently-installed 32GB SanDisk Cruzer Fit USB flash drive (as well as two extra Time Machine backups on separate network drives). Anyway, because the backup drive is relatively small, when I first set up Time Machine on this system, I had excluded /Applications
from my backup (something I don't recommend doing).
这篇关于将ios 5模拟器安装到xcode 5.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!