How to check device id of iPhone simulator?

前端 未结 8 1299
耶瑟儿~
耶瑟儿~ 2020-12-24 05:16

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.

Is there any

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 06:12

    EDIT: See other answers for the newer ways to view UDIDs for CoreSimulator-based simulators.

    1. instruments -s devices
    2. xcrun simctl list
    3. From Xcode: Window -> Devices and Simulators -> Simulators. The Identifier value is the UDID.

    From 2011:

    Is the iPhone Simulator UDID unique for each installed instance?

    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
    

提交回复
热议问题