44

On Xcode 9.1 the Pixel Accurate option is disabled and grayed out under the Window menu.

How can I take App Store screenshots without this option?

David Moles
  • 48,006
  • 27
  • 136
  • 235
Crashalot
  • 33,605
  • 61
  • 269
  • 439
  • i hope this will be of some help. https://stackoverflow.com/questions/18606926/adjusting-the-xcode-iphone-simulator-scale-and-size – kaka kikikeke Nov 02 '17 at 07:55
  • 1
    not the issue @kakakikikeke, the issue is that that menu item is disabled. The issue is seen here, https://twitter.com/CalQL8KOS/status/926151516406337536, feel free to add the link to the question – calql8edkos Nov 02 '17 at 18:15

8 Answers8

70

The original answer is wrong!

Russ from the Apple Simulator team says:

To take app store screenshots uncheck the "Optimize rendering for Window Scale" option in the Debug menu. I recommend turning this back on normally as it improves rendering performance. Double-clicking does not make the device use native resolution, that's just an accident due to the size of device you tested with and the size of your screen.

==========

ORIGINAL ANSWER (DOES NOT WORK RELIABLY):

  1. Make sure Window -> Show Device Bezels is unchecked.

  2. Double click the simulator's toolbar (the top bar listing the device and OS).

Note - sometimes, double-clicking the toolbar will just minimize the window to the dock. Alternately, simply click OSX menubar Window->Zoom.

Hello happy days, the simulator resizes and provides the right resolution for App Store screenshots.

Fattie
  • 27,874
  • 70
  • 431
  • 719
Crashalot
  • 33,605
  • 61
  • 269
  • 439
  • Toggle out of Devices bezels for this to work (uncheck Show Device Bezels) – Raj Nov 08 '17 at 22:34
  • 1
    To take app store screenshots uncheck the "Optimize rendering for Window Scale" option in the Debug menu. I recommend turning this back on normally as it improves rendering performance. Double-clicking does not make the device use native resolution, that's just an accident due to the size of device you tested with and the size of your screen. – russbishop Nov 09 '17 at 19:05
  • Strangely **this does work perfectly**, for me anyway. I have a relatively small external monitor (1920 x 1080) but when I "Zoom", then screen shot, it actually makes correct full-size 12.9 iPad screenshots: 2048.2732 pixels. – Fattie Feb 06 '18 at 15:18
  • Notice that Russ from Apple says ***"that's just an accident due to the size of your screen"*** In fact **that comment from Russ seems to be incorrect**. ... it worked perfectly for me, actually creating real-pixel-size screenshots for every simulator device. Or, maybe something has changed, or maybe it only works with external monitors!!!!! :) (Samsung monitors! :) ) – Fattie Feb 06 '18 at 15:19
  • this answer is INCORRECT. Please see @russbishop answer below. (Not the comment in this answer) – Juanjo Jun 28 '20 at 20:28
  • "Optimize rendering for Window Scale" is not an option in xcode 12. Have not found a way to get properly sized screenshots yet... – Adam Gerthel Oct 28 '20 at 12:09
24

You could set the simulator to landscape mode by clicking + first, then you could click + 2 to select Pixel Accurate option, don't forget set simulator to portrait mode by clicking + :)

Leo
  • 1,545
  • 13
  • 24
13

As of Xcode 12 we always enable all of the options.

In previous releases they were not enabled unless your screen was large enough to display the device at the full resolution without running off the edges.

russbishop
  • 16,587
  • 7
  • 61
  • 74
  • 3
    thanks for the correction. i know it's very hard to serve such a large and diverse user base, but from one team's perspective, this change in the simulator was frustrating! on a more positive note, i'm sure you're balancing priorities and resources as much as possible to help people, so thanks for the great work and for answering! – Crashalot Nov 09 '17 at 20:29
  • hey @Crashalot and Russ - thanks for the info Russ, but, I've tested it really extensively (just with a MBP, which happens to have a cheap external monitor connected) and in fact, oddly, IT DOES, DEFINITELY, make screenshots to the simulator **device pixel size** - which is totally different from the physical monitor size, and, totally different from the size the simulator happens to display the window (allowing for the OSX menu bars, etc etc). Who knows! – Fattie Feb 06 '18 at 15:21
  • What was the reasoning for the change from being able to specify resolutions, especially given you now disable some options? – JamEngulfer Mar 25 '19 at 17:53
  • 1
    @Fattie We removed the Optimize Rendering option in Xcode 10 so now screenshots are always full resolution. As evidenced by this question and the comments/responses it just caused too much confusion to be worth it. – russbishop Mar 27 '19 at 07:59
  • THIS is the right answer. Stackoverflow should really allow to uncheck previously ansers marked as correct – Juanjo Jun 28 '20 at 20:27
  • BUT - I'm using xcode 12 with iPhone 11 simulator and the screenshots (no matter the settings) are always in 828x1792 which is *not* the required size (which is 1242x2688). How do I get 1242x2688 screenshots using the simulator? – Adam Gerthel Oct 28 '20 at 12:28
  • @AdamGerthel Your claim is incorrect. iPhone 11 is 828x1792 pixels. Perhaps you meant iPhone 11 Max? – russbishop Dec 15 '20 at 10:12
  • @russbishop Which claim? I said that the iPhone 11 screenshots when taken using the simulator are 828x1792 which they are (just double-checked). See see https://help.apple.com/app-store-connect/#/devd274dd925 for required dimensions. It's too low. – Adam Gerthel Dec 16 '20 at 11:07
  • @AdamGerthel Sorry let me clarify: the iPhone 11 does *not* render at 1242x2688. The correct size for that device is 828x1792, so the screenshots are correct. Where are you getting the 1242x2688 number from? – russbishop Dec 22 '20 at 06:32
  • @russbishop I don't remember where I got those specific dimensions (i.e 1242x2688) from, and I see now that they don't match the list I linked to. Perhaps the list has changed, or perhaps I pressed the wrong buttons when commenting. BUT, my point was that they don't match App Store's image size requirements for iPhone 11, which is still true. So bottom line is that a screen shot taken with the simulator (no matter the device) can not be used directly (without modification) by App Store. – Adam Gerthel Dec 22 '20 at 13:45
  • @AdamGerthel The screenshot requirements are here: https://help.apple.com/app-store-connect/#/devd274dd925. The App Store requires a screenshot from the largest phone and a Plus phone then it can scale where needed. Take screenshots using the iPhone 12 Pro Max and iPhone 8 Plus Simulators. Then you will have the required sizes. – russbishop Feb 06 '21 at 19:07
5

I found the menu is only enabled when your screen resolution is able to support pixel accurate display( so as physical size). This is annoying because making a screenshot always generates a picture at the current size of the simulator on Xcode 9.1. It requires to the simulator to display in the pixel-accurate mode for qualified screenshots. For iPad Pro(12.9-in, 2732 x 2048 pixels), the mode is only available in landscape when my MacBook Pro is set to "More Space"- with actual resolution at 3840x2400.

Julian Ko
  • 139
  • 6
4

Since the computer I own (2017 MacBook Air) don't support landscape mode and resolution is 1440x1000 I'm stuck. In Xcode 9.0 you could still select 100% scaling and scroll down in the simulator. That's no longe possible.

I can understand if apple drops support for 2005 computers, but not 1 month old ones :S

So the only option I could find is to buy a extra screen! BUT for just making a screenshot you can still press CMD+S and it will make a native resolution one!

dme881
  • 67
  • 1
  • 3
1

In case this helps anyone else, the issue for me was my second monitor. I tried all of the solutions here, but none of them worked until i unplugged my second display. I work on a 15" 2016 MBP and the second display is a 2560×1440 QHD Asus monitor connected by HDMI to a USB-C hub.

Ethan
  • 179
  • 1
  • 9
1

Since I only needed to take a screenshot, I found out the quick fix was to go to "Hardware" > "Rotate Left"/"Rotate Right" and "Pixel/Point accurate" becomes available.

yura910721
  • 23
  • 4
0

Quick fix:

  1. Hardware > Device > Manage Devices > Delete the iPhone that you're having trouble with (from the sidebar). [Remember to "Close Window" on Simulator and exit Simulator before deleting]

  2. Add it again from the "+" button on the bottom left.

  3. Restart Simulator and launch the device again.

  4. Done.

Shayan
  • 11
  • 4