Xcode Organizer: can not use iPhone (dyld_shared_cache_extract_dylibs failed)
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:
- Delete a directory in
~/Library/Developer/Xcode/iOS DeviceSupport/
that matches the version of the iOS on your device. - Restart Xcode.
Source: Apple Developer Forum
Solution 3
After all this time I wanna contribute with one more possible solution for this problem...
- Open Devices and Simulators
- Right click on your device and select
Unpair Device
- Wait until your device ask for trust - this is important.. I noted that if I don´t wait this step the error persists
- Click on the plus button down... (+).
- When the next window open, if your iPhone still not appears wait a lit bit.. will appear
- 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:
- Open Finder and go to
~/Library/Developer/Xcode/iOS DeviceSupport/
- 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
go to ~/Library/Developer/Xcode/iOS DeviceSupport/13.2/Symbols/System/Library/Caches/com.apple.dyld
create empty file if it is not there - .processed_dyld_shared_cache_arm64e
restart xcode and enjoy!
Related videos on Youtube
mbuchetics
I am currently working as a researcher / software engineer at the real time rendering group of VRVis in Austria.
Updated on July 09, 2022Comments
-
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).
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 over 5 yearsThis should be the the accepted fix for the problem.
-
Soropromo about 5 yearsHi Ota, how did you change that to 10.3.3?
-
Admin almost 5 yearsDeleting '~/Library/Developer/Xcode/iOS DeviceSupport/' worked for me. Didn't need to restart XCode though.
-
Niklas over 4 yearsSo for Xcode10, deleting this folder first. then doing the below suggestion of unpairing then pairing device again worked.
-
Sam over 4 yearsHow do you know which folder matches your device?
-
manman over 4 yearsiOS version that matches your device. You can find your device OS by checking Organizer.
-
bhavik over 4 yearsI 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 over 4 yearsAll other solutions didn't worked for me and this solution is worked for me.
-
Balaji Ramakrishnan over 4 yearsWorked for me too for 13.3
-
Nick N over 4 yearsI had a slightly different OS directory "13.3 (17C54)" than the post, but this solution worked fine for me.
-
eGanges about 4 yearshad me worried; took another reboot, but FINALLY I can use this iPhone 11. Thanks!!
-
sight about 4 yearsThank you! Worked for 13.3 iPhone 11