Xcode Organizer: can not use iPhone (dyld_shared_c

2020-01-29 05:56发布

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.

13条回答
劫难
2楼-- · 2020-01-29 06:32

This happened to me when disk space was very low on the mac

查看更多
叛逆
3楼-- · 2020-01-29 06:35

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

查看更多
Evening l夕情丶
4楼-- · 2020-01-29 06:35

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)

查看更多
混吃等死
5楼-- · 2020-01-29 06:37

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.

查看更多
放荡不羁爱自由
6楼-- · 2020-01-29 06:37

Move your project to an external hard drive and compiled again This happens when you do not have much space on your machine

查看更多
Juvenile、少年°
7楼-- · 2020-01-29 06:41

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
查看更多
登录 后发表回答