How can I get full-resolution screenshots when the Simulator's “Pixel Accurate” option is disabled?

后端 未结 8 1716
醉酒成梦
醉酒成梦 2020-12-29 01:29

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

相关标签:
8条回答
  • 2020-12-29 02:18

    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.

    0 讨论(0)
  • 2020-12-29 02:19

    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.

    0 讨论(0)
  • 2020-12-29 02:23

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

    0 讨论(0)
  • 2020-12-29 02:26

    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!

    0 讨论(0)
  • 2020-12-29 02:26

    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.

    0 讨论(0)
  • 2020-12-29 02:29

    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.

    0 讨论(0)
提交回复
热议问题