首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

在Xcode 4.2及 Snow Leopard下安装SDK 6.0

2013-03-17 
在Xcode 4.2及 Snow Leopard上安装SDK 6.0首先,Xcode4.5的dmg文件已mount为磁盘驱动器。打开终端窗口,键入“

在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命令删除。

热点排行