gpt4 book ai didi

ios - 如何查看 iPhone 模拟器的设备 ID?

转载 作者:IT王子 更新时间:2023-10-29 07:47:55 26 4
gpt4 key购买 nike

我想检查我的 iPhone 模拟器应用程序的设备 ID。但不使用代码库。我知道如何使用 UIDevice 实例处理代码库。

有没有什么方法可以不使用代码库来查找设备 ID?

最佳答案

编辑:查看其他答案,了解查看基于 CoreSimulator 的模拟器的 UDID 的新方法。

  1. 仪器 -s 设备
  2. xcrun simctl list
  3. 从 Xcode:窗口 -> 设备和模拟器 -> 模拟器。Identifier 值是 UDID。

从 2011 年开始:

Is the iPhone Simulator UDID unique for each installed instance?

这个答案应该是你想要的。在您的 Mac 上查看 System Profiler,id 就在那里。我刚刚在我的机器上进行了测试,ID 匹配。

这是您可以输入以查看它的确切终端命令:

system_profiler SPHardwareDataType

关于ios - 如何查看 iPhone 模拟器的设备 ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6952279/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com