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

发布于 2024-08-22 19:45:31 字数 134 浏览 2 评论 0原文

调用 [[UIDevice currentDevice] uniqueIdentifier] 在控制台中返回 nil 和“​​无法确定主机的 UUID。错误:35”消息。 UUID 存储在模拟器的哪里?

Calling [[UIDevice currentDevice] uniqueIdentifier] returns nil and "unable to determine UUID for host. Error: 35" message in the console. Where is the UUID stored on the simulator?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甲如呢乙后呢 2024-08-29 19:45:31

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

模拟器没有 UDID。

UDID 是根据后台守护进程 lockdownd 在 iPhone 操作系统上。由于模拟器上不存在序列号等,无法计算UDID,因此返回nil

Are you using a Hackintosh? Please check http://osx86scene.com/viewtopic.php?f=3&t=2027&start=15.

There is no UDID for the simulator.

The UDID is computed (not stored, it's computed) based on the serial number and other globally unique addresses in the background daemon lockdownd on the iPhoneOS. Since the serial number, etc. do not exist on the simulator, the UDID cannot be computed, and thus nil is returned.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文