Xcode 从 5.0.1 iphone 获取调试信息时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8114467/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error in Xcode getting debugging info from 5.0.1 iphone
提问by Serjar
I′ve found a strange issue with latest XCode 4.2 when trying to deploy my app to an iphone that just upgraded to 5.0.1.
尝试将我的应用程序部署到刚刚升级到 5.0.1 的 iPhone 时,我发现最新的 XCode 4.2 有一个奇怪的问题。
It starts copying the debug info and the progress moves until the end, although it does not move beyond 'copying file 2 of 9'.
它开始复制调试信息并且进度移动到最后,尽管它不会超出“复制文件 2 of 9”。
After it's done I get the message:
完成后,我收到消息:
Xcode has encountered an unexpected error (0xC002)
No such file or directory, at ‘/SourceCache/DTDeviceKit/DTDeviceKit-867/DTDeviceKit/DTDeviceKit_Utilities.m:864'
in the organizer window. Any similar experience and clue on how to get over it? Needless to say every party involved has been restarted dutifully, including myself. Thanks for all your help
在组织者窗口中。关于如何克服它的任何类似的经验和线索?不用说,涉及的每一方都已尽职尽责地重新开始,包括我自己。感谢你的帮助
采纳答案by Chris Hill
I have found a potential fix. I tracked the issue down to some files not copying into the ~/Library/Developer/XCode/iOS DeviceSupport/5.0.1(9A405)/
folder. I borrowed a friend's iPad with the 5.0.1 update, and attempted to use his device for development. It worked fine, and I noticed my iOS DeviceSupport/5.0.1(9A405)
folder suddenly had many, many more files. I then connected my problematic iPad and bam, it just worked.
我找到了一个潜在的修复方法。我将问题追溯到一些未复制到~/Library/Developer/XCode/iOS DeviceSupport/5.0.1(9A405)/
文件夹中的文件。我借用朋友的 iPad 进行 5.0.1 更新,并尝试使用他的设备进行开发。它运行良好,我注意到我的 iOSDeviceSupport/5.0.1(9A405)
文件夹突然有很多很多文件。然后我连接了我有问题的 iPad 和 bam,它正常工作。
I attempted restoring, recovering, etc. and I could not fix the issue with these methods. I did the OTA update, and so did my friend, so our iPads were updated in exactly the same way. I do not have any explanation of the issue, but at least I have found a workaround.
我尝试恢复、恢复等,但无法使用这些方法解决问题。我进行了 OTA 更新,我的朋友也进行了更新,因此我们的 iPad 以完全相同的方式进行了更新。我对这个问题没有任何解释,但至少我找到了一个解决方法。
If you don't have access to another device with the files, here's a zip file of them:
如果您无权访问带有这些文件的另一台设备,这里是它们的 zip 文件:
回答by Tomer Bar
I found the following post helpful, although it is kind of dated: https://stackoverflow.com/a/9944892/1031623
我发现以下帖子很有帮助,尽管它有点过时:https: //stackoverflow.com/a/9944892/1031623
The only thing that I had to change is the following:
我唯一需要改变的是以下内容:
- Close Xcode
- Go to: "~/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A405)/Symbols/System/Library/Caches/com.apple.dyld/"
Note: if you don't have this folder, run Xcode, connect your device, and wait until the error 0xC002 appears in Organizer - the folder should be created by that time.Create 3 empty files there called:
- .copied_dyld_shared_cache_armv7 <== not 6
- .processed_dyld_shared_cache_armv7 <== not 6
- dyld_shared_cache_armv7 <== not 6
Run Xcode and enjoy the light next to your device eventually go green:)
- 关闭 Xcode
- 转到:“~/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A405)/Symbols/System/Library/Caches/com.apple.dyld/”
注意:如果你没有这个文件夹,运行Xcode ,连接您的设备,然后等待管理器中出现错误 0xC002 - 届时应该会创建该文件夹。在那里创建 3 个空文件,称为:
- .copied_dyld_shared_cache_armv7 <== 不是 6
- .processed_dyld_shared_cache_armv7 <== 不是 6
- dyld_shared_cache_armv7 <== 不是 6
运行 Xcode 并享受设备旁边的灯光最终变绿:)
回答by Oneiros
Delete the ~/Library/Developer/XCode/iOS DeviceSupport/5.0.1(9A405)/
folder.
Then connect your device and go to the Organizer.
Xcode should recreate that folder and fill it up with informations from your device.
删除~/Library/Developer/XCode/iOS DeviceSupport/5.0.1(9A405)/
文件夹。
然后连接您的设备并转到管理器。
Xcode 应该重新创建该文件夹并用您设备中的信息填充它。
回答by dhazelett
Thank you @Chris Hill, I was running into this on Xcode 4.3.1, but instead of
谢谢@Chris Hill,我在 Xcode 4.3.1 上遇到了这个问题,但不是
.../DTDeviceKit-867/...
I was getting .../DTDeviceKit-1197/...
.../DTDeviceKit-867/...
我得到 .../DTDeviceKit-1197/...
At first I replaced all the files mv -f ~/library/...
and started up Xcode again, I deleted all the files I placed there from your pkg, So I tried with Xcode open, iPhone plugged in; and it worked perfect!
Thanks again
起初我替换了所有文件mv -f ~/library/...
并再次启动了 Xcode,我从你的 pkg 中删除了我放在那里的所有文件,所以我尝试打开Xcode ,插入 iPhone;它工作完美!再次感谢