Xcode Organizer: can not use iPhone (dyld_shared_cache_extract_dylibs failed)

32,320

Solution 1

With the help of somebody at the Apple Developer Forums I was able to fix the problem by removing the "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)" folder. Xcode then re-added the symbols automatically and the error disappeared. For more information see this thread.

Solution 2

Target path to directory has been changed since Xcode 3.

If you have same issue in Xcode 8 then follow next steps:

  1. Delete a directory in ~/Library/Developer/Xcode/iOS DeviceSupport/
    that matches the version of the iOS on your device.
  2. Restart Xcode.

Source: Apple Developer Forum

Solution 3

After all this time I wanna contribute with one more possible solution for this problem...

  1. Open Devices and Simulators
  2. Right click on your device and select Unpair Device
  3. Wait until your device ask for trust - this is important.. I noted that if I don´t wait this step the error persists
  4. Click on the plus button down... (+).
  5. When the next window open, if your iPhone still not appears wait a lit bit.. will appear
  6. When your device appear, select it.

One more thing: I changed the version inside /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport from 10.3 to 10.3.3 - that is "exactly" version on my device, so, observe this too.

Believe in me guys... I bought 2 cables, investigate all links in google, bing, yahoo, books, forums... everything and nothing solves... until this.

Solution 4

For me the approach that worked was the one mentioned here which is:

  1. Open Finder and go to ~/Library/Developer/Xcode/iOS DeviceSupport/
  2. Remove the folder that matches your device and reconnect your phone

Solution 5

For Xcode 10.1, iOS 13.3 Below helped me.

Copied from https://forums.developer.apple.com/thread/108917

  1. go to ~/Library/Developer/Xcode/iOS DeviceSupport/13.2/Symbols/System/Library/Caches/com.apple.dyld

  2. create empty file if it is not there - .processed_dyld_shared_cache_arm64e

  3. restart xcode and enjoy!

Share:
32,320

Related videos on Youtube

mbuchetics
Author by

mbuchetics

I am currently working as a researcher / software engineer at the real time rendering group of VRVis in Austria.

Updated on July 09, 2022

Comments

  • mbuchetics
    mbuchetics almost 2 years

    When plugging my iPhone in and starting the Xcode organizer, a yellow circle next to the device show me that "This device is busy or otherwise unusable by Xcode." The Organizer is then processing two files (the second one takes quite a while to finish) and afterwards I get the error message as shown in the screenshot.

    I tried to google for that error message ("dyld_shared_cache_extract_dylibs failed") but could not find anything useful. I tried a couple things: repair permissions of my harddrive and run "sudo update_dyld_shared_cache -force". Still getting the error message.

    I am running iOS 4.2.1 and Xcode 3.2.5. I have not updated Xcode after updating from 4.2 to 4.2.1 (I think). alt text

    The Xcode console is empty but the regular OS X console shows this:

    1/22/11 10:56:19 PM     Xcode[4187]     Started symbol copying process
    1/22/11 10:56:19 PM     Xcode[4187]     Skipped copying file 1 of 2 ("processed" sentinal found)
    1/22/11 10:56:19 PM     Xcode[4187]     Skipped processing file 1 of 2 ("processed" sentinal found)
    1/22/11 10:56:19 PM     Xcode[4187]     Skipped copying file 2 of 2 ("copied" sentinal found)
    1/22/11 10:56:19 PM     Xcode[4187]     Started processing file 2 of 2
    1/22/11 10:56:20 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:20 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:20 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:21 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:21 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:22 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:22 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:22 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:23 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:23 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    1/22/11 10:56:23 PM     [0x0-0x4d04d].com.apple.Xcode[4187]     arch already exists in fat dylib
    

    This error message is then repeated constantly.

  • Mereuta Mihai Andrei
    Mereuta Mihai Andrei over 5 years
    This should be the the accepted fix for the problem.
  • Soropromo
    Soropromo about 5 years
    Hi Ota, how did you change that to 10.3.3?
  • Admin
    Admin almost 5 years
    Deleting '~/Library/Developer/Xcode/iOS DeviceSupport/' worked for me. Didn't need to restart XCode though.
  • Niklas
    Niklas over 4 years
    So for Xcode10, deleting this folder first. then doing the below suggestion of unpairing then pairing device again worked.
  • Sam
    Sam over 4 years
    How do you know which folder matches your device?
  • manman
    manman over 4 years
    iOS version that matches your device. You can find your device OS by checking Organizer.
  • bhavik
    bhavik over 4 years
    I have Xcode 10.2.1 and when I connect my iPhone 11 and follow the above steps but still not working my iPhone 11 has 13.3 iOS version.
  • Anjaneyulu Battula
    Anjaneyulu Battula over 4 years
    All other solutions didn't worked for me and this solution is worked for me.
  • Balaji Ramakrishnan
    Balaji Ramakrishnan over 4 years
    Worked for me too for 13.3
  • Nick N
    Nick N over 4 years
    I had a slightly different OS directory "13.3 (17C54)" than the post, but this solution worked fine for me.
  • eGanges
    eGanges about 4 years
    had me worried; took another reboot, but FINALLY I can use this iPhone 11. Thanks!!
  • sight
    sight about 4 years
    Thank you! Worked for 13.3 iPhone 11