Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Alright, after a lot of testing and digging up the filesystem... I solved it. It turns out that there are just a few files that are not downloaded from the device (for reasons still unknown). They are related to the dyld cache (don't really know what this is and what it's for). Here are the steps to make your 4.2.1 device debuggable in XCode 4.2 and 4.3.x:</p> <ol> <li>Close Xcode</li> <li>Go to: <code>~/Library/Developer/Xcode/iOS DeviceSupport/4.2.1 (8C148)/Symbols/System/Library/Caches/com.apple.dyld/</code> <br /><em>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.</em></li> <li>Create 3 empty files there called: <ul> <li><code>.copied_dyld_shared_cache_armv6</code></li> <li><code>.processed_dyld_shared_cache_armv6</code></li> <li><code>dyld_shared_cache_armv6</code></li> </ul></li> <li>Run Xcode and enjoy the light next to your device eventually go green:)</li> </ol> <p>Or, for the terminal lovers:</p> <pre><code>cd ~/Library/Developer/Xcode/iOS\ DeviceSupport/4.2.1\ \(8C148\)/Symbols/System/Library/Caches/com.apple.dyld/ touch .copied_dyld_shared_cache_armv6 touch .processed_dyld_shared_cache_armv6 touch dyld_shared_cache_armv6 </code></pre> <p><br />This is obviously a hack but it works perfectly for debugging and I haven't noticed any side-effects so far. <br />Enjoy! <br /><br /> Small update: <br /> I tested it on my snow leopard hackintosh, with the Xcode 4.2 (most recent to date) and although the device is active in the organizer and it is possible to run the app on the device, i get black screen on launch. It gets installed but apparently debugger cannot get attached. I had the same problem with 4.0.2, when the 0xC002 problem didn't yet occur so I think it's unrelated and might even not happen to others. Nevertheless, 0xC002 is still solved. <br /> On my main development machine with Lion and Xcode 4.3.2, device is perfectly debuggable.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload