【问题标题】:otool -L filename/path not workingotool -L 文件名/路径不起作用
【发布时间】:2016-03-18 11:53:51
【问题描述】:

我正在浏览一些不同的编程/调试教程,并在终端中使用“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(无效参数)

【问题讨论】:

    标签: ios iphone shared-libraries decompiling otool


    【解决方案1】:

    您需要指向最终的可执行文件。 DemoApp.app 只是一个目录。试试otool -L ~/Applications/DemoApp.app/Contents/MacOS/DemoApp

    【讨论】:

      猜你喜欢
      • 2018-07-22
      • 2017-07-12
      • 2023-04-05
      • 2022-08-03
      • 2016-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多