@@ -10,7 +10,9 @@ these libraries from the cache for reverse engineering.
1010Extract the default shared cache to ` /tmp/libraries ` :
1111
1212``` sh
13- dyld-shared-cache-extractor /System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_arm64e /tmp/libraries
13+ dyld-shared-cache-extractor \
14+ /System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_arm64e \
15+ /tmp/libraries
1416```
1517
1618If this fails it could be because the shared cache format has changed,
@@ -22,14 +24,30 @@ you're trying to extract the cache from a beta OS version) and override
2224the Xcode version when running ` dyld-shared-cache-extractor ` :
2325
2426``` sh
25- DEVELOPER_DIR=/Applications/Xcode-beta.app dyld-shared-cache-extractor /System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_arm64e /tmp/libraries
27+ DEVELOPER_DIR=/Applications/Xcode-beta.app \
28+ dyld-shared-cache-extractor \
29+ /System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_arm64e \
30+ /tmp/libraries
31+ ```
32+
33+ If you want to prefer the system installation of ` dsc_extractor.bundle `
34+ instead of Xcode's version, you can pass it manually on the command
35+ line:
36+
37+ ``` sh
38+ dyld-shared-cache-extractor \
39+ /System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_arm64e \
40+ /tmp/libraries \
41+ /usr/lib/dsc_extractor.bundle
2642```
2743
2844On macOS versions before Ventura the shared cache was in a different
2945location, you can extract on older macOS versions with:
3046
3147``` sh
32- dyld-shared-cache-extractor /System/Library/dyld/dyld_shared_cache_arm64e /tmp/libraries
48+ dyld-shared-cache-extractor \
49+ /System/Library/dyld/dyld_shared_cache_arm64e \
50+ /tmp/libraries
3351```
3452
3553## Installation
0 commit comments