From 109b6aa128c614fe79b5cd8b5cecddd85906074d Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 15 Jun 2022 14:27:54 -0700 Subject: [PATCH] Add mention of newer Xcode version usage (#3) --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index d70a83e..db23468 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,18 @@ Extract the default shared cache to `/tmp/libraries`: dyld-shared-cache-extractor /System/Library/dyld/dyld_shared_cache_arm64e /tmp/libraries ``` +If this fails it could be because the shared cache format has changed, +and the version you're trying to extract isn't supported by the version +of Xcode you have selected globally (which you can view with +`xcode-select -p` and `xcodebuild -version`). In this case you might +have to download a newer version of Xcode (potentially a beta version if +you're trying to extract the cache from a beta OS version) and override +the Xcode version when running `dyld-shared-cache-extractor`: + +```sh +DEVELOPER_DIR=/Applications/Xcode-beta.app dyld-shared-cache-extractor /System/Library/dyld/dyld_shared_cache_arm64e /tmp/libraries +``` + ## Installation [Homebrew](https://brew.sh):