otool -L TestAppCode.app /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'TestAppCode.app': Is a directory

1.先找到TestAppCode.app的目录

cd ~/Library/Developer/Xcode/DerivedData/TestAppCode-gsqyxbggysmzaedidyonyvqadmye/Build/Products/Debug-iphonesimulator

上面的那个TestAppCode-gsqyxbggysmzaedidyonyvqadmye是具体情况自己修改,也就是你自己的目录

2. 找到TestAppCode.app的可执行文件

otool -L TestAppCode.app /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'TestAppCode.app': Is a directory_第1张图片
B9C88E84-8CEA-4238-B584-73D2659A2C1C.png

显示包内容找到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)

你可能感兴趣的:(otool -L TestAppCode.app /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'TestAppCode.app': Is a directory)