如何在模拟器上获取设备UUID?

0 iphone uuid ios-simulator

调用在控制台中[[UIDevice currentDevice] uniqueIdentifier]返回nil和" unable to determine UUID for host. Error: 35"消息.UUID存储在模拟器上的哪个位置?

ken*_*ytm 5

你在使用Hackintosh吗?请查看http://osx86scene.com/viewtopic.php?f=3&t=2027&start=15.

模拟器没有UDID.

根据lockdowndiPhoneOS上后台守护程序中的序列号和其他全局唯一地址计算(未存储,计算)UDID .由于模拟器上不存在序列号等,因此无法计算UDID,因此nil返回.