How can I get full-resolution screenshots when the

2020-02-23 05:09发布

问题:

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?

回答1:

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.



回答2:

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 + :)



回答3:

We don't enable that option unless your screen is large enough to display the device at the full resolution without running off the edges.

As an aside: If you have "Optimize rendering for window scale" enabled that causes the Simulator to render at the size of the window, not the native resolution of the device. That means screenshots are at the window's scaled size, not full device size. To get full-size screenshots you can temporarily disable that option. I recommend leaving it on otherwise because it improves performance.

edit: We removed the "Optimize rendering for window scale" option. It caused too much confusion. Now you always get full-size screenshots.



回答4:

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.



回答5:

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!



回答6:

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.



回答7:

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.



回答8:

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.