iGhibli / iOS-DeviceSupport

This repository holds the device support files for the iOS, and I will update it regularly.
8.08k stars 1.15k forks source link

iOS 13.2 - dyld_shared_cache_extract_dylibs failed #79

Open joshdillner opened 4 years ago

joshdillner commented 4 years ago

Hi, I'm getting the following error trying to set up 13.2 on Xcode 10.1:

"dyld_shared_cache_extract_dylibs failed"

I've copied 13.2 to the correct directory inside Xcode, and also tried removing it from ~/Library/Developer/Xcode/iOS DeviceSupport first.

Any ideas?

jormungand2006 commented 4 years ago

Did you try Xcode 11.2.1 (11B500)'s iOS13.2 device support? For me, 11.2.1 GM (11B53)'s device support is same error on Xcode 10.2.1 with iOS 13.2.2 iPhone, but 11B500's one works.

joshdillner commented 4 years ago

11.2.1 GM (11B53) is the one just added to this repo right?

Where did you get 11B500?

jormungand2006 commented 4 years ago

You can download Xcode 11.2.1 (11B500) manually from App Store or https://developer.apple.com/download/more/. It releases today, so someone add new disk image to this repo soon.

joshdillner commented 4 years ago

Ok cheers, will give that a go.

iGhibli commented 4 years ago

@joshdillner I have uploaded iOS 13.2.zip) support files. (From Xcode11.2.1(11B500))

I hope it works for you.

joshdillner commented 4 years ago

@iGhibli thanks, but no luck.

I don't have a jailbroken iPhone, but this solution worked for me in the end: https://stackoverflow.com/questions/7922308/xcode-4-2-error-0xc002-when-trying-to-use-a-jailbroken-iphone-3g-for-developmen/9944892#9944892

steven-adamitus-1 commented 4 years ago

@joshdillner

That worked for me, thanks so much for posting.

dukedhx commented 4 years ago

Following @joshdillner Josh's tips here's a more developed answer: https://stackoverflow.com/questions/58539353/dyld-shared-cache-extract-dylibs-failed-for-6s-plus-running-on-ios-13-1-3

azhabort commented 4 years ago

Thanks @joshdillner, @dukedhx that is working solution!

joshdillner commented 4 years ago

@steven-adamitus-1 @azhabort

No worries, happy to finally get it working!

Thanks @dukedhx for a comprehensive answer.

jeremycochoy commented 4 years ago

Same issue with 13.2.3. Unfortunately none of this fix worked for me.

I finaly found a way to fix it by copying the dyld_shared_cache_arm64e cache files of my previous 13.1.2\ \(17A861\) config. And then it worked.

cp "/Users/jeremycochoy/Library/Developer/Xcode/iOS\ DeviceSupport/13.1.2 (17A861) arm64e/Symbols/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e" "/Users/jeremycochoy/Library/Developer/Xcode/iOS DeviceSupport/13.2.3 (17B111) arm64e/Symbols/System/Library/Caches/com.apple.dyld/"

Looks like the new generated dyld_shared_cache_arm64e file doesn't works fine.

ghost commented 4 years ago

The only way this worked for me on Xcode 11 was to install Xcode 11.2 first and have it setup the device, then use Xcode 11. My project unfortunately requires to be run on Xcode 11 due to some compiled frameworks and this is the only way I got it to work.

SMikhlevskiy commented 4 years ago

Not worked for my XCode 10.3 . and device with IOS 13.2. Xcode showed me error "dyld_shared_cache_extract_dylibs failed"

tiagomsmagalhaes commented 4 years ago

Have you tried @joshdillner solution?

cd ~/Library/Developer/Xcode/iOS\ DeviceSupport/13.2/Symbols/System/Library/Caches/com.apple.dyld/
ls -la
touch .copied_dyld_shared_cache_armv6
touch .processed_dyld_shared_cache_armv6
touch dyld_shared_cache_armv6

There may be 2 folders with 13.2 and in one of them there may be the same files ending with armv6e so you have to:

touch .copied_dyld_shared_cache_armv6e
touch .processed_dyld_shared_cache_armv6e
touch dyld_shared_cache_armv6e
SMikhlevskiy commented 4 years ago

Have you tried @joshdillner solution?

cd ~/Library/Developer/Xcode/iOS\ DeviceSupport/13.2/Symbols/System/Library/Caches/com.apple.dyld/
ls -la
touch .copied_dyld_shared_cache_armv6
touch .processed_dyld_shared_cache_armv6
touch dyld_shared_cache_armv6

There may be 2 folders with 13.2 and in one of them there may be the same files ending with armv6e so you have to:

touch .copied_dyld_shared_cache_armv6e touch .processed_dyld_shared_cache_armv6e touch dyld_shared_cache_armv6e

Thanks, it works for me

gokhanamal commented 4 years ago

Same issue with 13.2.3. Unfortunately none of this fix worked for me.

I finaly found a way to fix it by copying the dyld_shared_cache_arm64e cache files of my previous 13.1.2\ \(17A861\) config. And then it worked.

cp "/Users/jeremycochoy/Library/Developer/Xcode/iOS\ DeviceSupport/13.1.2 (17A861) arm64e/Symbols/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e" "/Users/jeremycochoy/Library/Developer/Xcode/iOS DeviceSupport/13.2.3 (17B111) arm64e/Symbols/System/Library/Caches/com.apple.dyld/"

Looks like the new generated dyld_shared_cache_arm64e file doesn't works fine.

it works for me

NoviceGom commented 4 years ago

In my case, iPhone 11 and iOS 13.3 ~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches

touch .copied_dyld_shared_cache_arm64e touch .processed_dyld_shared_cache_arm64e touch dyld_shared_cache_arm64e

KC-218 commented 4 years ago

The same error in iOS 13.3 (17C54) and XCode 10.1. Have any solution here?

loeti commented 4 years ago

I had the same error. Deleting the device support files from the library directory fixed the problem. I think that after unpairing the device the files will be downloaded again from the device the time I installed my app. This time correctly.

rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/13.3\ (17C54)

kcharliek commented 4 years ago

@godofgom solution is work.

touch .copied_dyld_sharedcache(architecture) touch .processed_dyld_sharedcache(architecture) touch dyld_sharedcache(architecture)

but you should insert proper architecture text.

bcbroom commented 4 years ago

Using this path seemed to work for me (iOS 13.3 on Xcode 10.1)

~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches/com.apple.dyld

instead of .../Caches

NoviceGom commented 4 years ago

oops. thanks. I forgot last path. now work well

tronghoabg commented 4 years ago

I did not find this directory ~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches/com.apple.dyld

Using this path seemed to work for me (iOS 13.3 on Xcode 10.1)

~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches/com.apple.dyld

instead of .../Caches

I did not find this directory ~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches/com.apple.dyld

tiagomsmagalhaes commented 4 years ago

@tronghoabg go to ~/Library/Developer/Xcode/iOS DeviceSupport/directory and list the contents. You might have two directories starting with 13.3

tronghoabg commented 4 years ago

@tronghoabg go to ~/Library/Developer/Xcode/iOS DeviceSupport/directory and list the contents. You might have two directories starting with 13.3 My device is runing ios 13.3

tiagomsmagalhaes commented 4 years ago

@tronghoabg go to ~/Library/Developer/Xcode/iOS DeviceSupport/directory and list the contents. You might have two directories starting with 13.3 My device is runing ios 13.3

Do you have 2 directories starting with 13.3 on that location or not?

tronghoabg commented 4 years ago

@tronghoabg go to ~/Library/Developer/Xcode/iOS DeviceSupport/directory and list the contents. You might have two directories starting with 13.3 My device is runing ios 13.3

Do you have 2 directories starting with 13.3 on that location or not?

I have folder 13.3. I download it in github

tronghoabg commented 4 years ago

@tronghoabg go to ~/Library/Developer/Xcode/iOS DeviceSupport/directory and list the contents. You might have two directories starting with 13.3

i copy to terminal . but xcode not work on the ios 13.3

TrongHoas-iMac:~ tronghoa$ cd ~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches/com.apple.dyld -bash: syntax error near unexpected token(' TrongHoas-iMac:~ tronghoa$ ls -la total 64 drwxr-xr-x+ 33 tronghoa staff 1056 Jan 8 14:57 . drwxr-xr-x 6 root admin 192 Oct 16 17:10 .. -r-------- 1 tronghoa staff 7 Jan 2 19:30 .CFUserTextEncoding -rw-r--r--@ 1 tronghoa staff 14340 Jan 8 14:18 .DS_Store drwxr-xr-x 3 tronghoa staff 96 Oct 27 17:54 .ET_TVC drwxr-xr--@ 5 tronghoa staff 160 Oct 21 22:39 .Shipin7Config drwx------ 6 tronghoa staff 192 Jan 8 16:34 .Trash drwxr-x--- 4 tronghoa staff 128 Oct 21 18:52 .android -rw------- 1 tronghoa staff 4399 Jan 8 16:47 .bash_history -rw-r--r-- 1 tronghoa staff 168 Nov 11 11:02 .bash_profile drwx------ 79 tronghoa staff 2528 Jan 8 16:47 .bash_sessions -rw-r--r-- 1 tronghoa staff 0 Jan 8 16:41 .copied_dyld_shared_cache_arm64e -rw-r--r-- 1 tronghoa staff 0 Jan 2 19:37 .copied_dyld_shared_cache_armv6 -rw-r--r-- 1 tronghoa staff 0 Jan 8 16:46 .copied_dyld_shared_cache_armv6e -rw-r--r-- 1 tronghoa staff 0 Jan 8 16:41 .processed_dyld_shared_cache_arm64e -rw-r--r-- 1 tronghoa staff 0 Jan 2 19:37 .processed_dyld_shared_cache_armv6 -rw-r--r-- 1 tronghoa staff 0 Jan 8 16:46 .processed_dyld_shared_cache_armv6e drwx------@ 3 tronghoa staff 96 Dec 13 17:25 Applications drwxrwxr-x@ 4 tronghoa staff 128 Jan 8 14:58 Creative Cloud Files drwx------+ 24 tronghoa staff 768 Jan 8 16:20 Desktop drwx------+ 6 tronghoa staff 192 Jan 8 15:44 Documents drwx------+ 11 tronghoa staff 352 Jan 8 16:47 Downloads drwx------@ 69 tronghoa staff 2208 Jan 8 16:27 Library drwx------+ 4 tronghoa staff 128 Jan 2 19:22 Movies drwx------+ 4 tronghoa staff 128 Oct 16 16:14 Music drwx------+ 6 tronghoa staff 192 Dec 6 15:35 Pictures drwxr-xr-x+ 5 tronghoa staff 160 Oct 19 10:30 Public drwxr-xr-x 8 tronghoa staff 256 Oct 27 13:25 SecuritySpy drwxr-xr--@ 3 tronghoa staff 96 Oct 21 22:38 Shipin7 -rw-r--r-- 1 tronghoa staff 0 Jan 8 16:41 dyld_shared_cache_arm64e -rw-r--r-- 1 tronghoa staff 0 Jan 2 19:37 dyld_shared_cache_armv6 -rw-r--r-- 1 tronghoa staff 0 Jan 2 19:39 dyld_shared_cache_armv6e -rw-r--r--@ 1 tronghoa staff 0 Jan 2 19:12 processed_dyld_shared_cache_arm64e TrongHoas-iMac:~ tronghoa$ touch .copied_dyld_shared_cache_armv6e TrongHoas-iMac:~ tronghoa$ touch .processed_dyld_shared_cache_armv6e TrongHoas-iMac:~ tronghoa$ touch dyld_shared_cache_armv6e`

tronghoabg commented 4 years ago

Using this path seemed to work for me (iOS 13.3 on Xcode 10.1)

~/Library/Developer/Xcode/iOS DeviceSupport/13.3 (17C54) arm64e/Symbols/System/Library/Caches/com.apple.dyld

instead of .../Caches

please help , how to contac to your via fb or skype

austinhutchison commented 4 years ago

I run into this with basically every iOS version bump (I'm on Xcode 10.1), and this time with 13.5 it was a little more tricky and I'm not 100% sure what combo of tactics ended up working, but the last thing that finally worked:

  1. copy dyld_shared_cache_arm64 from another version. I used - 13.1.2 (17A860) to ~/Library/Developer/Xcode/iOS DeviceSupport/13.5 (17F75) arm64e/Symbols/System/Library/Caches/com.apple.dyld
  2. Rename the file and add the e to make it dyld_shared_cache_arm64e
  3. In Xcode > Window > Devices & Simulators force the device to unpair, then pair again (should prompt a "trust" dialog on the iOS device
  4. I believe at this point the device exchanges some files with Xcode, and at this point I was free from the error

I will say that I have a hunch that the SO question @dukedhx mentioned was close, the answer with fewer votes here had the files that matched what ended up being created inside my now working com.apple.dyld folder

Good luck!

haithngn commented 4 years ago

I run into this with basically every iOS version bump (I'm on Xcode 10.1), and this time with 13.5 it was a little more tricky and I'm not 100% sure what combo of tactics ended up working, but the last thing that finally worked:

  1. copy dyld_shared_cache_arm64 from another version. I used - 13.1.2 (17A860) to ~/Library/Developer/Xcode/iOS DeviceSupport/13.5 (17F75) arm64e/Symbols/System/Library/Caches/com.apple.dyld
  2. Rename the file and add the e to make it dyld_shared_cache_arm64e
  3. In Xcode > Window > Devices & Simulators force the device to unpair, then pair again (should prompt a "trust" dialog on the iOS device
  4. I believe at this point the device exchanges some files with Xcode, and at this point I was free from the error

I will say that I have a hunch that the SO question @dukedhx mentioned was close, the answer with fewer votes here had the files that matched what ended up being created inside my now working com.apple.dyld folder

Good luck!

You saved my life. 🥰 🥰 🥰