Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the black notch to show in the screenshot when running iPhone X in simulator?

Tags:

xcode

It appears I seem to be the only one with this issue as I don't see anyone with this issue on SO.

But how the heck do I get the black notch when using the iPhone X in the simulator to take a screenshot?

Here's what I'm running:

Yet when I take a screenshot, I get this:

I've even went to Edit->Copy Screen, yet the notch is still missing from the screenshot.

Where the heck is the black notch at? Is there a setting I need to turn on/off?...or is this normal?

I'm currently running Xcode Version 9.2 (9C40b).

NOTE: I need to upload these screenshots to the App Store so they must contain the correct size dimensions.

like image 856
Pangu Avatar asked Oct 23 '25 12:10

Pangu


2 Answers

Yon can get it using the Terminal. With your simulator screen ready to be captured, just type:

$ xcrun simctl io booted screenshot --mask black screenshot_name

And you will get a screenshot with notch and with the required size.

like image 183
Ricardo Isidro Avatar answered Oct 25 '25 01:10

Ricardo Isidro


  1. Press Command + Shift + 4
  2. Then press Spacebar
  3. Click on simulator.
like image 38
Bilal Avatar answered Oct 25 '25 02:10

Bilal