简体   繁体   English

如何在Linux上获取Apple Binaries的UUID

[英]How to get UUID for apple binaries on Linux

I am trying to figure out how to get the UUID for a apple executable file while on Linux (EC2). 我试图弄清楚如何在Linux(EC2)上获取苹果可执行文件的UUID。

When on Mac, I can use the following line to get the UUID: 在Mac上,我可以使用以下行获取UUID:

xcrun dwarfdump --uuid

I learned that there is a version of dwarfdump on Linux, so I used the following command to install it: 我了解到Linux上存在dwarfdump版本,因此我使用以下命令进行安装:

sudo yum install libdwarf-tools

However when I run the utility and look at the help screen there is no "-u" or "-uuid" command, and trying to run them does't do anything (there is no error message). 但是,当我运行该实用程序并查看帮助屏幕时,没有“ -u”或“ -uuid”命令,并且尝试运行它们不会执行任何操作(没有错误消息)。 The commands available look like it is a different tool that what I am looking for. 可用的命令看起来像是我正在寻找的其他工具。 I tried some of the arguments like "-a" and "-b" against the same file which worked on Mac, but I never get any output. 我在Mac上运行的同一个文件中尝试了诸如“ -a”和“ -b”之类的一些参数,但是我从未得到任何输出。

Does anyone know where I can get the version of dwarfdump that supports UUID for Linux? 有谁知道我在哪里可以获得支持Linux UUID的dwarfdump版本? Or any other easy way to get the UUID from a file? 或任何其他简单的方法来从文件中获取UUID? I know it's in the binary file somewhere but I don't want to have to write an entire command parser just for this. 我知道它在二进制文件中的某个位置,但我不想为此专门编写整个命令解析器。

I talked to the developer of this tool and the problem is that MachO is not currently supported. 我与该工具的开发人员进行了交谈,问题是当前不支持MachO。

So it looks like the only way to do this would be to write a tool from scratch to do it, or to modify an existing tool. 因此,看来执行此操作的唯一方法是从头开始编写工具以进行修改或修改现有工具。 I think ATOSL might be able to be used for this purpose. 我认为ATOSL可能可以用于此目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM