Xcode 9 - Simulator: screenshots taken do not have the correct resolution for iTunesConnect

In the old version of Xcode Simulator (Xcode 8), you can press Command + 1, and this will show that the simulator will be the maximum size (100%), even if it is related to its extension beyond the visible space of the screen, Then you can press Command + S and take a screenshot from any simulator and use it directly for the app store. (This will be the right decision). I did this for the iPad Pro 12.9 "and iPhone 6s Plus to quickly fill out the screenshot sections.

Now, in Xcode 9, this no longer works. I tried all the options: manually resizing, setting to 100%, zooming in / out, etc. None of the options allows me to expand the simulator beyond the visible borders of my screen. This will not allow you to drag the corner beyond. Therefore, when you press COMMAND + S to take a screenshot, it ends to be lower than ItunesConnect requires.

So, how can we now take screenshots only using the simulator and use them to store with the correct resolution?

+5
source share
4 answers

In Xcode 9.1, go to Simulator> Debug> Optimize Rendering for Window Scale. disable this option, now the screenshots will be in the correct size (resolution).

+22
source

This is a mistake in Xcode 9 (and, I would say, in Xcode 8, the idea that the resolution and screen size will depend on how you displayed the simulator window was always just wrong).

Update to Xcode 9.1. In Xcode 9.1, Command-S always gets resolution (and size) directly for the device presented in the simulator window.

For example, if I say Command-S on the screen of the 9.7-inch iPad Pro simulator in Xcode 9.1, no matter how big the window is, I get a 1536 × 2048 screenshot. Well, this is the right size for the screenshot to be sent to App Store Nothing more to do.

+3
source

Here is a temporary workaround to expand the window of your simulator of your device to the required maximum size in both Xcode 9.0 and Xcode 9.1.

  • Run the simulator.
  • Go to the window → Show device panels. (must be enabled).
  • Take one of the top panels (left or right) and drag it straight up until the simulator window reaches the desired maximum supported resolution for the screenshot you are trying to take. For the iPad Pro 12.9 "solution I needed was: 2048 x 2732, and now I can take these 6 MB screenshots.

NOTE. After a certain point, no matter what size you expand, you will not get a higher resolution than this device supports. This can be expected. You just get a larger version of the simulator (which is also useful)

+1
source

I just want to add one thing with Xcode 9. You need to use Command + S instead of Command + Shift + 4 , spacebar , then left-click to get the size you want the screenshot after disabling "Menu> Debugging> Rendering Optimization for Window Scale" . Screenshots will be saved on the desktop.

0
source

Source: https://habr.com/ru/post/1272286/


All Articles