Wrong screenshot size in Xcode 10 using Simulator

2020-06-08 07:04发布

问题:

I'm trying to make screenshots for iTunes using the Xcode 10 Simulator, but the images are the wrong size.

I have read that Debug > Optimize Rendering for Window Scale would help, but in Xcode there is no such option. Does anyone have this issue?

回答1:

With Xcode 10, iphone 8 plus simulator worked for 5.5inch. Then, Iphone Xs Max for 6.5 inch, but this needed the alpha removed, which can be done by opening the image, clicking 'file' > 'export' and unchecking alpha.



回答2:

After testing, it looks like Xcode 10.0 has full resolution screenshot ability for iPhone X series simulators only. It's good to know that it is enough to make 6.5" screen size screenshots to submit to the App Store, so just use iPhone X series simulators for screenshots to solve the issue.



回答3:

Do not use cmd+4 shortcut, use Simulator -> New Screenshot.

For me, using system shortcut produces bad results, Simulator screenshot works ok.



回答4:

Debug > Optimize Rendering for Window Scale is a Simulator option, open your simulator and proceed to use it