查看第三方库的中的符号
搜索用到的.a文件和framework文件
~~find . \( -name "*.a" -or -name "*.framework" \) -exec ./np_wrap.sh {} \; > symbols.txt
- np\_wrap.sh实现
~~#!/usr/bin/env bash
~~ if [[ "$1" == *.framework ]]; then
~~ name=$(basename "$1")
~~ name=${name/.framework/}
~~ #echo "$1/$name"
~~ nm -A -arch x86_64 "$1/$name"
~~ elif [[ "$1" == *.a ]]; then
~~ #echo -n
~~ nm -A -arch x86_64 "$1"
~~ else
~~ echo "unknown"
~~ fi