我正在运行一些不同的编程/调试教程,并在终端中使用"otool“命令。一个例子是检查共享库。错误始终是两个中的一个。我从文件所在的目录运行它。只需输入otool,就会得到otool "-x“开关的列表。我向下查看了多个文件和目录上的开关列表,得到了相同的错误。
我遗漏了什么?
$ otool -L DemoApp
错误: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool:无法打开文件: DemoApp (没有这样的文件或目录)
或
$ otool -L DemoApp.app
错误: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool:无法映射文件: DemoApp.app (无效参数)
发布于 2016-04-08 15:50:33
您需要指向最终的可执行文件。DemoApp.app只是一个目录。试试otool -L ~/Applications/DemoApp.app/Contents/MacOS/DemoApp
https://stackoverflow.com/questions/36083686
复制相似问题