How do I run an iPad Simulator in Xcode?

时光毁灭记忆、已成空白 提交于 2019-12-05 20:31:17

问题


I am trying to run an iPad simulator on Xcode, but currently I only have one option when I go to Xcode > Open Developer Tool > Simulator, which launches the iPhone simulator.

How do I launch the iPad simulator?


回答1:


You should select an iPad device by navigating to

Hardware/Device/[OS version if you have multiple OS versions installed]/[device]

in the simulator's menu.

If there are no iPad devices in the list, follow these instructions:

  1. Click on Hardware/Device/Manage Devices...

  2. Select the Simulators option on the top.

  3. Press the plus (+) sign in the lower-left corner.

  4. Define the name, the device type and the OS version of the new simulator, then click on Create.

For more information, check out Getting started in Simulator.




回答2:


For bonus points :)

I would also extract the simulator from inside Xcode to make it more accessible.

Applications / Xcode.app ( right click and select "Show Package Contents" )

From this folder Contents / Developer / Applications / Simulator.app

Create a shortcut to that and simulator opens without opening the main Xcode.app



来源:https://stackoverflow.com/questions/48346709/how-do-i-run-an-ipad-simulator-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!