Skip to content

Instantly share code, notes, and snippets.

@danhd123
Last active September 13, 2019 08:10
Show Gist options
  • Save danhd123/79e23c0ab7506e159f366bcce58c716d to your computer and use it in GitHub Desktop.
Save danhd123/79e23c0ab7506e159f366bcce58c716d to your computer and use it in GitHub Desktop.
iOS/macOS Framework dependencies
#!/bin/bash
# Generate a list of all* the frameworks' dependencies. Output to file to not blow out your scrollback
# * for an approximate definition of "all". There are a few it doesn't catch in PrivateFrameworks
cd /System/Library/Frameworks # or PrivateFrameworks, or /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
for file in `ls`
do
fwkname=$(echo "$file" | cut -f 1 -d '.')
otool -L $file/$fwkname
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment