在Xcode 4.2及 Snow Leopard上安装SDK 6.0

首先,Xcode4.5的dmg文件已mount为磁盘驱动器。打开终端窗口,键入“su-”命令,以root身份运行下列命令(或者建立一个shell脚本文件然后运行)。

echo copying iPhoneOS6.0.sdk

cp -R/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

 

echo copying iphonesim6.0.sdk

cp -R/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

 

echo copying devicesupport for 6.0

cp -R/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.0\\(10A403\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/

 

#remove old -latest- link

rm -f/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest

 

echo setting up Latest link

cd/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

ln -s ./6.0\ \(10A403\) ./Latest

iPhoneSimulator 6.0模拟器在雪豹系统上运行似乎会有点问题,如果你在编译项目时遇到“Library not loaded: /usr/lib/system/libdispatch.dylib”错误,请删除iPhoneSimulator6.0模拟器。或将脚本中拷贝模拟器的cp命令删除。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值