gpt4 book ai didi

ios - otool -L 文件名/路径不起作用

转载 作者:行者123 更新时间:2023-11-29 12:03:17 25 4
gpt4 key购买 nike

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

最佳答案

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

关于ios - otool -L 文件名/路径不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36083686/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com