Xcode 9.1 iOS simulator Window > Physical Size disabled
Asked Answered
G

11

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?

Grits answered 2/11, 2017 at 0:28 Comment(3)
https://mcmap.net/q/366631/-how-can-i-get-full-resolution-screenshots-when-the-simulator-39-s-quot-pixel-accurate-quot-option-is-disabled see thisImputation
@Imputation 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.Sorce
Recent updates to the simulator is completely bullshit.Greyson
T
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.

Tinea answered 14/11, 2017 at 14:7 Comment(3)
I just tested this and it works like a charm. I resized it in my test to crazy big and the screenshot size still came out perfect, 2048x2732.Grits
Works perfectly.Jennyjeno
Another workaround: unchecking "Window > Show Device Bezels" re-enables "Pixel Accurate" command.Cy
L
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

Labia answered 23/2, 2018 at 18:9 Comment(1)
perfect, I removed my comment.Cretonne
K
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.

Kalmuck answered 14/11, 2018 at 9:16 Comment(0)
L
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.

Laser answered 6/11, 2017 at 18:4 Comment(1)
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.Grits
M
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

Minify answered 9/11, 2017 at 3:14 Comment(1)
This does not work. When you open the simulator again it is the same size as when it was closed. (9.2 beta)Sorce
F
2

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

Faretheewell answered 8/12, 2017 at 11:30 Comment(0)
C
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

Chicky answered 16/7, 2018 at 23:8 Comment(1)
This is the only option that worked for me. Thanks for sharingJorry
O
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

Olympic answered 11/2, 2020 at 13:8 Comment(0)
N
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

Natalianatalie answered 13/12, 2017 at 8:4 Comment(0)
K
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 :-)

Krongold answered 31/12, 2017 at 13:22 Comment(1)
This is the best answer as of 2018-01.Anselm
R
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.

Rouble answered 2/11, 2017 at 0:38 Comment(2)
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.Grits
I am currently using xcode 9.0. I have not updated to the latest version. I thought you are using same version.Rouble

© 2022 - 2024 — McMap. All rights reserved.