xcode4.2中调试IOS5.1

说实施了为了用上ios5.1的模拟器,又是将雪豹升级成狮子,又是下载最新的xcode的。没少费劲。突然发现有找到了不用升级也可以使用IOS的解决办法, mark一下。

来源:http://www.cocoachina.com/bbs/read.php?tid=96224

If you have another Mac running Lion + XCode 4.3.1 you can copy the files from:
“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)”
to the equivalent place on your SL Mac: probably “/Developer/Platforms/iPhoneOS.platform/DeviceSupport”
and also copy ‘version.plist’ from the Lion machine in the iPhoneOS.platform folder to the SL machine.
Re-start XCode on the SL machine and re-connect the devices and it seems happy enough.
[Edit: If you don’t have access to a machine with Lion+4.3.1 you can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion/xcode_4.3.1_for_lion.dmg

then mount the DMG, Show Package Contents on the XCode icon and drill down to
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to
find the files mentioned above.]
好吧,简单翻译一下:
1、下载lion版本的xcode 4.3
2、双击打开xcode_4.3.1_for_lion.dmg
3、右键点击xcode图标--->显示包内容
4、进入 Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,把 5.1 (9B176) 文件夹 copy到 /Developer/Platforms/iPhoneOS.platform
把Contents/下 version.plist COPY到/Developer/Platforms里
5、重启xcode,一切都ok了

artgolf,补充一个解决方案吧:
我的iPad也升级了iOS5.1,雪豹上安装了两套Xcode,一套为3.2.5,一套为4.2,第一次启动Xcode3.2.5时提示发现未知设备,从设备中下载调试库。然后两套Xcode都能运行调试程序,一切正常

转载请注明: 转自Rainbird的个人博客
   本文链接: xcode4.2中调试IOS5.1


相关博文

    分享到:

About rainbird

IOS攻城狮
This entry was posted in IOS开发, object-c, 转载 and tagged , , . Bookmark the permalink.

One Response to xcode4.2中调试IOS5.1

  1. Rain.Zhou says:

    补充方案找不到 设备中下载调试库 的入口。

发表评论