jesseilev jesseilev - 20 days ago 12
iOS Question

Xcode not recognizing iPhone 5s, dyld_shared_cache_extract_dylibs failed

I am trying to run my app on an iPhone 5s. I plug in the device, but its name does not appear among the simulators as an option for Running; instead I just have the generic "iOS Device" option. In the Organizer window, I navigate to my device, which Organizer does recognize as having a valid provisioning profile. But when I click "Use for Development", I get this message:

dyld_shared_cache_extract_dylibs failed


The answer to a similar question seems to be outdated now. They suggested 'removing the "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)" folder.' But that folder is no longer used in Xcode versions after 4.2. I am on Xcode 5.

Answer

This folder is now in the Xcode.app bundle. Open the Terminal app on your Mac, then:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
$ ls
     4.2        4.3     5.0     5.1     6.0     6.1     7.0 (11A465)
$ rm -rf "7.0 (11A465)"

By the way, if this doesn't work, you might want to consider reinstalling Xcode and see if it fixes the issue.