20

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?

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
psvj
  • 8,280
  • 8
  • 30
  • 44
  • Look in the devices and simulators window, under simulators. Have you installed any iPad simulators? If so, pick one as you set the destination for running the project. If not, do that first. – matt Jan 19 '18 at 17:49
  • In Xcode, try "Product" > "Destination" > "iPad Pro (..)" – Christopher Stock Nov 13 '18 at 18:12

5 Answers5

19

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.

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

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

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

    Hardware/Device/Manage Devices...

  2. Select the Simulators option on the top.

    "Simulators" option selected

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

    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.

    Options for the new simulator

For more information, check out Getting started in Simulator.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
12

This is for Xcode 11.2.1+

Open XCode from the App menu:

Xcode -> Open Developer Tool -> Simulator

enter image description here

This will open the latest iPhone simulator, and to change it to anything else, e.g., iPad:

Hardware -> Device -> iOS -> iPad

enter image description here

Kozmotronik
  • 2,080
  • 3
  • 10
  • 25
ROOT
  • 11,363
  • 5
  • 30
  • 45
12

This has changed. Now, after you opened your simulator as you mentioned you need in the simulator menu bar to go to: File -> Open Simulator -> [ios version] -> [ios device] There you can find an ipad simulator to open.

Eran Ravid
  • 139
  • 1
  • 3
7

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

Aaron
  • 10,187
  • 3
  • 23
  • 39
2

Open Simulator, go to File > Open Simulator > {Your version of IOS} > {Device you want}.

Dont Forget to rebuild your app before trying to launch it.