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.
This happened to me when disk space was very low on the mac
Target path to directory has been changed since Xcode 3.
If you have same issue in Xcode 8 then follow next steps:
~/Library/Developer/Xcode/iOS DeviceSupport/
that matches the version of the iOS on your device.
Source: Apple Developer Forum
I spend two days looking for the right answer.
I tried unpairing my device and deleting the
~/Library/Developer/Xcode/iOS DeviceSupport/
but nothing didn't work for me. The solution for me was to upgrade my MacOS to the latest version: Catalina 10.15.1. Then I have downloaded the latest Xcode 11.2.1_GM_Seed. I took the device support folder from the new Xcode and I added to my old Xcode.I guess the device Support in this link has something wrong. Because when I used it I got this error: "dyld_shared_cache_extract_dylibs failed"
PS: This a solution for those who wants to run their project (written on Swift 4) on a real iPhone (OS 13.2)
For what it's worth: I encountered this problem when I was out of disk space. It seems that XCode was the first application to 'notice' by throwing this error. After freeing up some disk space everything worked fine again.
Move your project to an external hard drive and compiled again This happens when you do not have much space on your machine
For me the approach that worked was the one mentioned here which is:
~/Library/Developer/Xcode/iOS DeviceSupport/