XCode 4.2支持iOS 5.1.1真机调试的实现 .

目前市面上的ios设备,操作系统都是5.1.1的版本了。但是偶的开发环境还是Snow Leopard 10.6.8 + XCode 4.2。
新买的设备接上去,发现XCode 4.2无法在ios5.1.1的设备上面调试。
根据以前把iPhoneOS4.3.sdk往XCode 4.2转移的经验,下载了一个XCode4.4.1的DMG文件,研究下,把相应的文件从DMG里面拷贝出来
放到本地Developoer相应目录即可以实现XCode4.2对ios5.1.1设备的支持:

双击打开DMG文件,在出来的文件夹里面,右键点击XCode这个包,点击右键菜单里面的“显示包内容”,然后进行如下操作:

把XCode包中的 Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) 拷贝到
本地磁盘 /Developer/Platformes/iPhoneOS.platform/DeviceSupport

把XCode包中的 Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk 拷贝到
本地磁盘 /Developer/Platformes/iPhoneOS.platform/Developer/SDKs

把XCode包中的  Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk 拷贝到
本地磁盘 /Developer/Platformes/iPhoneSimulator.platform/Developer/SDKs/

下面的操作注意先备份现有文件:
把XCode包中的 Contents/Developer/Platforms/iPhoneOS.platform/version.plist 覆盖
本地磁盘的/Developer/Platformes/iPhoneOS.platform/version.plist

把XCode包中的  Contents/Developer/Platforms/iPhoneSimulator.platform/version.plist 覆盖
本地磁盘的/Developer/Platformes/iPhoneSimulator.platform/version.plist


PS:进行这些操作之前,请先关闭XCode,完成这些操作之后重开XCode即可。

猜你喜欢

转载自pay.iteye.com/blog/1731376