keith / dyld-shared-cache-extractor

A CLI for extracting libraries from Apple's dyld shared cache file
MIT License
420 stars 34 forks source link

Invalid cache magic in file at dyld_shared_cache_arm64 #7

Open jiwenyi163 opened 1 year ago

jiwenyi163 commented 1 year ago

I got this log when run dyld-shared-cache-extractor /Users/andaji/Mine/XiaoMaGe/iOSFramesMachO/dyld_shared_cache_arm64 /Users/andaji/Mine/XiaoMaGe/iOSFramesMachO/aaa

My Mac version is 12.3.1 with Apple M1 chip and my XCode version is 13.4.1. The dyld_shared_cache_arm64 is load from a iPhone 7 and it iOS version is 12.0.1

keith commented 1 year ago

Hrm since iOS 12 is a bit older, maybe try an older Xcode as your DEVELOPER_DIR. I suppose it's possible there was a breaking change that newer Xcodes no longer handle