在Xcode中安装低版本的SDK和模拟器

来源:互联网 发布:yu121288 备用域名 编辑:程序博客网 时间:2024/04/28 22:01
以xcode4.6为例:前提安装了xcode 4.6 并且交xcode.app复制到应用程序目录下
下载之前版本的dmg安装包,然后双击dmg  右键Xcode.app “显示包内容” 然后:
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs  将此目录下的对应版本文件夹拷贝到
现在xcode4.6 的对应目录中: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs 

simulator 安装

 

 

5.切换到桌面 finder --->前往-->文件夹输入 /Volums/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

6.复制 iPhoneSimulator5.1.sdk文件夹到如下目录

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs


7.在Finder中推出Xcode卷

8.然后重新启动 xcode 4.6

    会提示安装一个兼容旧版本插件.

9.重新启动后就可以在新建工程-->builder setting中 base sdk看到 ios 5.1

10.模拟器也会多出两个 iphone 5.1 ipad 5.1 (经验正模拟器没有多) ,不知怎么回事,欢迎讨论。

原创粉丝点击