Last active
September 13, 2019 08:10
-
-
Save danhd123/79e23c0ab7506e159f366bcce58c716d to your computer and use it in GitHub Desktop.
iOS/macOS Framework dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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