Serjar
Serjar

Reputation: 183

Error in Xcode getting debugging info from 5.0.1 iphone

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.

It starts copying the debug info and the progress moves until the end, although it does not move beyond 'copying file 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

Upvotes: 18

Views: 8057

Answers (4)

Chris Hill
Chris Hill

Reputation: 1924

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.

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.

If you don't have access to another device with the files, here's a zip file of them:

http://www.enemyhideout.com/ios/5.0.1%20(9A405).zip

Upvotes: 15

Tomer Bar
Tomer Bar

Reputation: 181

I found the following post helpful, although it is kind of dated: https://stackoverflow.com/a/9944892/1031623

The only thing that I had to change is the following:

  1. Close Xcode
  2. 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.
  3. 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
  4. Run Xcode and enjoy the light next to your device eventually go green:)

Upvotes: 18

dhazelett
dhazelett

Reputation: 335

Thank you @Chris Hill, I was running into this on Xcode 4.3.1, but instead of

.../DTDeviceKit-867/... I was getting .../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

Upvotes: 0

Oneiros
Oneiros

Reputation: 4378

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.

Upvotes: 1

Related Questions