Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Xcode getting debugging info from 5.0.1 iphone

Tags:

xcode

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

like image 754
Serjar Avatar asked Nov 13 '11 20:11

Serjar


1 Answers

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:)

like image 158
Tomer Bar Avatar answered Oct 15 '22 01:10

Tomer Bar