簡體   English   中英

如何在 Mac OSX Mavericks 中正確運行字符串工具?

[英]How do you run the strings tool properly in Mac OSX Mavericks?

如何在 Mac OSX Mavericks 中正確運行字符串工具?

我正在嘗試按照我在網上找到的示例來運行它:

strings -a UserParser.class

但我收到此錯誤:

錯誤:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strings: fat file: UserParser.class truncated or malformed (offset plus size of cputype (11078144) cpusubtype (17415)文件結尾)

我只使用-而不是-a就成功了。

strings - UserParser.class

另一種選擇:使用自制軟件安裝 binutils。 然后改用它的字符串命令。

為了我:

 brew install binutils
 /usr/local/opt/binutils/bin/strings ...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM