Is the iPhone Simulator UDID unique for each installed instance?

后端 未结 4 1904
离开以前
离开以前 2021-02-04 16:44

i.e. does this call:

NSString *udid = [UIDevice currentDevice].uniqueIdentifier;

return always the same UDID when it is executed on the iPhone

4条回答
  •  囚心锁ツ
    2021-02-04 17:28

    The UDID of the simulator is actually the same as the UDID of your Mac. You can easily verify this by looking at the System Profiler utility (where it is called the Hardware UUID).

    On iPhones, iPads and iPod Touches, it is 40 lowercase hex digits, probably a SHA1 hash of some hardware identifier.

提交回复
热议问题