Skip to content

Instantly share code, notes, and snippets.

@T1T4N
Created January 29, 2024 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save T1T4N/98d1556ebe84d0d0ff27fbf75fcd98d0 to your computer and use it in GitHub Desktop.
Save T1T4N/98d1556ebe84d0d0ff27fbf75fcd98d0 to your computer and use it in GitHub Desktop.
List all dynamically linked framework dependencies
# 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