33

I want to test my application on iPad mini screen in Xcode 8.2, but I could not find the simulator for the same.

I have also tried to add simulator Hardware > Device > click bottom add menu but here I do not see any option to download the iPad mini simulator. There is no option for iPad mini (image here)

Cœur
  • 37,241
  • 25
  • 195
  • 267
Harshil Kotecha
  • 2,846
  • 4
  • 27
  • 41

2 Answers2

45

By popular demand, Xcode now includes the iPad mini Simulator. It is not created by default, but you can use the Xcode Devices & Simulators window or xcrun simctl from the command line to create one.

For example, to create an iPad mini 4 simulator with Xcode 11.2:

xcrun simctl create "iPad mini 4" com.apple.CoreSimulator.SimDeviceType.iPad-mini-4 com.apple.CoreSimulator.SimRuntime.iOS-13-2

oschrenk
  • 4,080
  • 4
  • 22
  • 25
russbishop
  • 16,587
  • 7
  • 61
  • 74
  • 1
    IPad mini screen size is 7.9 inch so there is any way to set screen size in simulator? – Harshil Kotecha Apr 13 '17 at 02:51
  • The resolution is identical between the mini and 9.7" iPad so there is no difference between their behavior. – russbishop Apr 13 '17 at 05:00
  • 1
    many time my client facing some design issue in 7.9" and i have 9.7" inch display . so any solution ? – Harshil Kotecha Apr 13 '17 at 06:22
  • We always match the number of pixels for the device. At 100% Scale (in the Window menu) we make those virtual pixels match your Mac's DPI. In no case do we try to make the on-screen Simulator have the same physical device size. – russbishop Apr 13 '17 at 15:43
  • @russbishop I guess this isn't accurate now there's a "Physical Size" scaling option? – John Jan 26 '18 at 12:40
  • 1
    So does the iPad Air or Air 2 has same resolution as iPad Mini? – Kirti Nikam Jan 24 '19 at 10:49
  • Is there no chance to simulate the 7,9'' of the iPad mini for testing purposes? My app has a split view, and for iPad mini it seems to be too small, so I need to work on it. – Donni Mar 05 '19 at 15:32
  • 2
    @Daniel check my answer. You can do this on the latest Xcode. – Akshar Patel Jul 23 '19 at 08:32
  • Year 2019 Akshar should be the answer – Phuah Yee Keat Oct 20 '19 at 02:36
  • I updated my answer; by popular demand we now ship an iPad mini device type. – russbishop Oct 25 '19 at 06:04
  • Note: you must now change the very last character of the command from `2` to `3`, like so: `xcrun simctl create "iPad mini 4" com.apple.CoreSimulator.SimDeviceType.iPad-mini-4 com.apple.CoreSimulator.SimRuntime.iOS-13-3` SO won't let me make a single-character edit to the answer. – user45623 Jan 03 '20 at 19:09
  • Now works `xcrun simctl create "iPad mini 4" com.apple.CoreSimulator.SimDeviceType.iPad-mini-4 com.apple.CoreSimulator.SimRuntime.iOS-13-4` – Cruz Jul 15 '20 at 02:03
29

I don't know about the earlier releases but you can do this on Xcode 10.2.1(or later)

Select Add Additional Simulators... from the active scheme:

enter image description here

Then press + to create new Simulator and select iPad mini in Device Type:

enter image description here

Akshar Patel
  • 8,998
  • 6
  • 35
  • 50