首先,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命令删除。