Created
January 29, 2024 08:42
-
-
Save T1T4N/98d1556ebe84d0d0ff27fbf75fcd98d0 to your computer and use it in GitHub Desktop.
List all dynamically linked 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
# Get all dynamically linked framework dependencies | |
# sort -u is necessary for FAT targets such as iphonesimulator builds | |
otool -L "/path/to/Example.framework/Example" | \ | |
grep '@rpath' | grep '.framework' | awk '{ print $1 }' | cut -d '/' -f2 | \ | |
xargs -I{} basename "{}" ".framework" | \ | |
sort -u | \ | |
grep -v "Example" | \ | |
while IFS=$'\n' read -r dependency; do | |
echo "$dependency" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment