Viztor
V2EX  ›  问与答

OS X 有类似唯一识别码之类东西么?

  •  
  •   Viztor · May 10, 2014 · 3756 views
    This topic created in 4576 days ago, the information mentioned may be changed or developed.
    用于在代码里确认一个客户机的唯一性。
    如果是虚拟机呢?
    如果是Hackintosh呢?
    4 replies  •  2014-05-10 23:51:14 +08:00
    Livid
    Livid
    MOD
    PRO
    May 10, 2014
    1
    基本上可以用 MAC 地址。

    网卡的 MAC 地址。

    如果不考虑 Hackintosh 的话,那就用蓝牙设备的 MAC 地址。
    hewigovens
    hewigovens
    May 10, 2014
    2
    建议使用Hardware UUID, About this Mac -> More Info... -> System Report
    hewigovens
    hewigovens
    May 10, 2014
    3
    补个链接 https://developer.apple.com/library/mac/technotes/tn1103/_index.html
    @Livid 里面有提到 Caveats for using the primary MAC address
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2219 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:34 · PVG 22:34 · LAX 06:34 · JFK 09:34
    ♥ Do have faith in what you're doing.