1.需要安装ldid
//2019年1月份更新
brew install ldid xz
2.安装thros
vim ~/.bash_profile
export THEOS=~/theos
export PATH=$THEOS/bin:$PATH
source ~/.bash_profile
git clone --recursive https://github.com/theos/theos.git $THEOS
3.ldid可以用来导出和导入权限(示例)
ldid -e WeChat > WeChat.entitlements
ldid -SWeChat.entitements WeChat
4.查看胖廋二进制
lipo -info WeChat
Non-fat file: WeChat is architecture: arm64