24

I need to make screen shots (specifically iPad Pro 12.9") for the App Store. I resized the simulator to fit it on my mac's screen. Now I can't resize it back to 100%, which is required to make a new screen shot. Both sizing options, Physical Size (Cmd-1) and Pixel Accurate (Cmd-2) are grayed out. How do I reset the simulator back to 100%?

Workaround: I was able to manually resize the simulator window using the mouse to grab the corner (the new way to adjust size in 9.1). Using trial-and-error by resizing, making new screen shots, and checking the resulting pixel dimensions, I was able to manually get it back to 100% (2048x2732). The original question still remains; is there a way to reset the simulator to 100% without using this workaround?

Worth
  • 243
  • 3
  • 9
  • https://stackoverflow.com/a/47173670/6137672 see this – Leo Nov 08 '17 at 07:16
  • @Leo You linked to an answer that says to turn the device to landscape, then press the Pixel Accurate setting. That doesn't work for most cases though because Pixel Accurate is still grayed out. – joshuakcockrell Nov 13 '17 at 23:11
  • 1
    Recent updates to the simulator is completely bullshit. – zs2020 Nov 22 '17 at 00:34

11 Answers11

24

Just resize up the simulator window dragging until the size reaches a size greater than or equal the original size, this worked for me.

Gabriel Castro
  • 264
  • 1
  • 2
20

I could get the screen shot with resolution of (2048x2732) deactivating the option of "Optimize Rendering for Window Scale"

Simulator/Debug/Optimize Rendering for Window Scale

rollstuhlfahrer
  • 3,988
  • 9
  • 25
  • 38
Hugo Jordao
  • 786
  • 8
  • 9
3

The real reason why the pixel accurate size option is greyed out is because your screen resolution is too low to fit the device with that size. Solution is to increase your screen resolution temporarily under system settings > display in mac os.

Piotr
  • 4,813
  • 7
  • 35
  • 46
2

Though resizing of simulator using Cmd + 1...5 is now disable however, you can resize it by dragging simulator with pointer is available like any normal window on OS X. You can resize it by dragging simulator either from right or left or bottom.

  • 3
    That works for resizing the simulator to fit an arbitrary area on the screen. What I am looking for, however, is a way to resize it back to 100%, which is needed to make screenshots for the App Store. – Worth Nov 06 '17 at 22:12
2

1.Close/Quit simulator

2.Xcode 9.1 >> Window >> “Devices and Simulartors” >> "Simulartors", then remember the device identifier you want to set

enter image description here

3.Then open the file

~/Library/Preferences/com.apple.iphonesimulator

4.Find out simulator device id you want to set

5.Set "SimulatorWindowLastScale" value = 1

enter image description here

Vinodh
  • 5,262
  • 4
  • 38
  • 68
Jarvan
  • 31
  • 3
2

In xcode(mine is 9.1), uncheck Window->Show Device Brezels to make changes on simulator, then check it to make screenshots.

sshic
  • 21
  • 4
2

On Simulator 10.0 (Xcode 9.4.1)

Hardware > Rotate Left or Rotate Right

and this will re-enable Physical Size selection (Window > Physical Size) if it got disabled/ grayed out

Kandeep
  • 71
  • 1
  • 3
2

Using Xcode 11 the "Optimize Rendering for window scale" is not present anymore. Just select default simulator for iPhone Pro Max and make screenshot with ⌘ + S

You will have 1242 x 2688 px screenshots saved on Desktop

ostiepoK
  • 25
  • 4
1

You can make it to default size by pressing the Zoom option in the simulator window option.The Zoom option will get enable when the physical size is selected.enter image description here

Rahul K Rajan
  • 776
  • 10
  • 19
1

I have an Apple Thunderbolt Display, and the Simulator shrinks the window to fit the display. However, if I press Cmd+S to make the screenshot the resulting PNG still has the 100% size of 2048x2732. No need to play with bezels or corners :-)

bio
  • 669
  • 4
  • 14
0

Once you have launched the simulator and you want to get the normal size back, click the simulator, then, go to Window, select scale option, then choose the actual size. That will solve that.

Onyekachi Ezeoke
  • 912
  • 7
  • 11
  • 1
    Window->scale was in 9.0. In Xcode 9.1, the scale option has been removed. There are two reset options (I'm pretty sure they're new) that appear to address sizing, Physical Size (Cmd-1) and Pixel Accurate (Cmd-2). Both are disabled. – Worth Nov 02 '17 at 10:57
  • I am currently using xcode 9.0. I have not updated to the latest version. I thought you are using same version. – Onyekachi Ezeoke Nov 02 '17 at 12:00