Get Mac unique identifier number (ex.: serial number) in 64-bits

会有一股神秘感。 提交于 2019-12-02 13:18:21

Have a look at this article "How to get hardware and network info"

If you are having trouble with the 64bit architecture - or your app simply has to be a 64bit app - consider moving the IO part to a helper utility and access it using distributed objects.

Have a look at Creating XPC Services

Simple way is to execute:

ioreg -l | grep IOPlatformSerialNumber | awk '{print $4}'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!