如何查看iPhone模拟器的设备ID? [英] How to check device id of iPhone simulator?

查看:1104
本文介绍了如何查看iPhone模拟器的设备ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to check device id for my iPhone simulator application. But not using codebase. I know the way how to do with codebase, using UIDevice instance.

有没有办法在不使用代码库的情况下找到设备ID?

Is there any way to find device id without using codebase?

推荐答案

每个已安装的实例的iPhone模拟器UDID是否唯一?

此答案应该是您想要的。查看Mac上的System Profiler,id就在那里。我刚刚在我的机器上测试并且ID匹配。

This answer should be what you want. Look at System Profiler on your mac and the id is there. I just tested on my machine and the IDs match.

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

This is the exact Terminal command you can enter to view it:

system_profiler SPHardwareDataType

这篇关于如何查看iPhone模拟器的设备ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆