1.先找到TestAppCode.app的目录
cd ~/Library/Developer/Xcode/DerivedData/TestAppCode-gsqyxbggysmzaedidyonyvqadmye/Build/Products/Debug-iphonesimulator
上面的那个TestAppCode-gsqyxbggysmzaedidyonyvqadmye
是具体情况自己修改,也就是你自己的目录
2. 找到TestAppCode.app的可执行文件
显示包内容找到TestAppCode,这个就是可执行文件,把他复制到桌面或者任何你想要的位置
3. 再执行otool命令
otool -L TestAppCode
TestAppCode:
/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1444.12.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.dylib (compatibility version 1.0.0, current version 1252.0.0)
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 1443.0.0)
/System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 3694.4.18)