6

I am trying to run AR Project in device it gives me an dyld_shared_cache_extract_dylibs failed error. My system OS is Mojave 10.14. I tried this and this answer. But still having the same issue, Not able to run my application. Thanks in Advance.

NavinBagul
  • 741
  • 7
  • 24

3 Answers3

5

This is happening because somehow older versions of Xcode have an issue creating these cache files properly - try below:

  • Close Xcode
  • Install the device support profile that matches your iOS version from here
  • Go to: ~/Library/Developer/Xcode/iOS DeviceSupport/<your device's OS version name>/Symbols/System/Library/Caches/com.apple.dyld/

    Note: if you don't have this folder, run Xcode, connect your device and try to pair with it - the folder should be created by then ...

  • Create these three empty files - overwrite existing ones if any:

 .copied_dyld_shared_extract_dylibs
 .processed_dyld_shared_extract_dylibs
  dyld_shared_cache_extract_dylibs
  • Start Xcode again
Bryan Huang
  • 5,247
  • 2
  • 15
  • 20
2

In my case, the issue I has in xCode 10.1.

In order to solve this issue the three files that you must be in ~/Library/Developer/Xcode/iOS\ DeviceSupport/<your device's OS version name>/Symbols/System/Library/Caches/com.apple.dyld/ are:

  • dyld_shared_cache_arm64e
  • .copied_dyld_shared_cache_arm64e
  • .processed_dyld_shared_cache_arm64e

I didn't create empty files, I copied and pasted this three files from previous OS version folder in /Caches/com.apple.dyld/. If you just upgrade to 13.4.1 iOs versión, I copy from ~/Library/Developer/Xcode/iOS DeviceSupport/13.4.1 (17E262)/Symbols/System/Library/Caches/com.apple.dyld/ folder.

malhal
  • 26,330
  • 7
  • 115
  • 133
jcamacho
  • 818
  • 2
  • 12
  • 25
1

Tried all of the above solutions with no success.

Finally, simply unpairing the device and pairing it again fixed the issue for me.

see: https://www.youtube.com/watch?v=m3jST08imY0

Dror Bar
  • 686
  • 2
  • 10
  • 19