问题
I am trying to run my app on iPhone XS Max running iOS 12.1.2, but till the end of the build and it returns "dyld_shared_cache_extract_dylibs failed" , i removed the supported files for it and rerun my app and it gives the same error , any suggestions i'm stuck ?????
回答1:
There is a (temporary) solution I've been using...
- Open Devices and Simulators
- Remove your device from the list
- Tap the + button on the bottom left of the window
- Select the device (before tapping Trust on it)
- Tap Trust on the device
- Profit
For me I still have to do this steps every time I connect the device...
回答2:
I have both Xcode10.3 and Xcode11.2.1 installed on same machine. Whatever solution I try, it doesn't work with Xcode10.3 and iPhone11. It works like a charm on the latest Xcode though. I think the solution is to switch to the latest Xcode version.
回答3:
I recently solved this issue by installing Xcode 11.2 and 10.1 alongside each other, and using Xcode 11.2 to build the debugger files. It seems 10.1 can't handle newer versions of iOS and builds the debugger support files incorrectly.
Delete everything under ~/Library/Developer/Xcode/iOS DeviceSupport/
related to the version of iOS giving you trouble. This is where Xcode saves the debugger support files. Then launch Xcode 11.2 with the phone connected and allow it to build the debugger support. After it has finished, close it and open Xcode 10.1 and it should work.
来源:https://stackoverflow.com/questions/54107715/dyld-shared-cache-extract-dylibs-failed-for-iphone-xs-max-running-ios-12-1-2