问题
Is there a way to get "Display P3" screenshots from the simulator? The difference in the greens is terrible! But having to do 55 screenshots from the device instead is much more work.
I'm on a MacBook Pro with Touch Bar that should technically be able to display P3 colors.
回答1:
No. Unfortunately, the QuartzCore software renderer only supports sRGB. There is no way to get extended range sRGB or P3 out of that render pipeline in the simulator.
Regarding the lack of color matching, the thing you mentioned in your radar but not here is that you'r eon Xcode 8.2. The correct colorspace should be getting propagated in Xcode 9. Please try out Xcode 9.2.
回答2:
It looks like the Simulator saves images with the "sRGB IEC61966-2.1" profile. When I assign the "Apple RGB" profile to it in Photoshop ("Edit" > "Assign Profile…"), the colors on the screen match the displayed simulator window and any screenshots created on the device (in this case an iPhone X).
Not sure what's wrong exactly but to me this looks like a bug (rdar://35994235).
来源:https://stackoverflow.com/questions/47721708/display-p3-screenshots-from-ios-simulator