16

I know that there's Window>Scale>100/75/50% but the scale of the retina iPad simulator is still too big for my screen to be able to test anything.

Is there a way I can scale the size of the iOS simulator smaller than one of the default values? I need it to scale down at least to 25% for my screen size to accommodate the window.

11
+50

You can't. I've been an iOS software developer for two years and I haven't been able to find a way do this. I have tried to find solutions to this but came up with nothing. I'd love to be proven wrong, but I'm 99% certain there's no way to do this.

When my screen is too small I use 50% scale window, which is ought to be enough until I hook up my big monitor again at home.

EDIT: As of Xcode 9, you can resize it to any way you want from the corner of the simulator.

  • 2
    Confirmed; has to do with a rendering issue if you could resize it stackoverflow.com/questions/1446135/… – Ethan Lee Sep 5 '12 at 5:41
  • New update in iOS SDK now allows scaling, see my answer below. – Nick Jul 26 '14 at 23:30
  • @Nicholas OP knew he could scale to 50% or 75% of the size, he was wondering if he can go smaller like 25%. – Enrico Susatyo Jul 27 '14 at 3:16
  • My bad, over read that. Have deleted my answer :) – Nick Jul 27 '14 at 4:28
  • 1
    As of today with Xcode 7, you can now select 25% scale of the simulator. – Enrico Susatyo Oct 2 '15 at 1:18
10

You can scale iOS Simulator to desire scale (I tried from .2 to 1.4 ) and it worked for me.

To do this you have to go to /Library/Preferences and edit com.apple.iphonesimulator.plist file. Edit value for key SimulatorWindowLastScale to desire scale.

I tried this on latest version of Mountain Lion (10.8.4) and on the iOS 6.0 Simulator.

  • 1
    On my setup, using Xcode 5 from the App Store, the fine is located in the path ~/Library/Preferences. Modified it as explained and it worked fine. For me, .4 was the magic number to make the iPad fit properly on my screen. – Jordan Mack Oct 14 '13 at 22:58
  • 1
    This should be the accepted best answer. – Stevko Aug 5 '14 at 16:46
  • I had inconsistent results with the simulator in Xcode 6, but ultimately it does still seem to work. defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.4" – Jordan Mack Sep 11 '14 at 8:55
  • Works perfectly to get iphone 6 plus to fit on my (only) hd screen – mcfedr Oct 28 '14 at 9:43
4

In Xcode 6.3 just press +5 (25% scale) or +4 (33% scale). Or in Window > Scale

  • For Ios 8 and 9 you can also use Command + 3 OR Command + 2 for resizing the ios simulator. – anonymox Mar 2 '16 at 8:00
1

Now It's more flexible with Xcode 9- Simulator. You can pick & drag any corner of simulator to resize it and set it according to your requirement.

Look at this snapshot:

enter image description here

Note: With Xcode 9.1+, Simulator scale options are changed.



Keyboard short-keys:
According to Xcode 9.1+

Physical Size       ⌘ 1      command + 1
Pixel Accurate      ⌘ 2      command + 2


According to Xcode 9

50% Scale           ⌘ 1      command + 1
100% Scale          ⌘ 2      command + 2
200% Scale          ⌘ 3      command + 3



Simulator scale options from Xcode Menu:

Xcode 9.1+:
Menubar ▶ Window ▶ "Here, options available change simulator scale" (Physical Size & Pixel Accurate)

Pixel Accurate: Resizes your simulator to actual (Physical) device's pixels, if your mac system display screen size (pixel) supports that much high resolution, else this option will remain disabled.

enter image description here

Xcode 9.0
Menubar ▶ Window ▶ Scale ▶ "Here, options available change simulator scale"

enter image description here



Using Terminal Command
Follow these steps to scale simulator using terminal commands

  1. Close/Quit simulator. (if open)
  2. Open Terminal app (using Spotlight search, Press ⌘ + SPACE to open spotlight search)
  3. Copy following text and paste it next to terminal cursor.

defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.3"

  1. Open 'Simulator' (Run your iOS project using Xcode).

You will find simulator scale update.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.