tubbytoad42
tubbytoad42

Reputation: 393

iOS Simulator Always Takes The Same Screenshot

When trying to take a screenshot on the iOS simulator, it works the first and only time. After this, subsequent screenshots are always an exact copy of the first, regardless of what is actually on the screen.

This will reset once the device is restarted but this is not a very good solution, as it requires you to restart the emulator every time you want to take a screenshot.

I have tried wiping all data and resetting the emulator. This did not work and the problem persists.

The emulator is an iPhone 12 Pro Max running iOS 14.3.

Does anyone know any ways to fix this problem?

Upvotes: 22

Views: 1846

Answers (5)

Vu Trinh
Vu Trinh

Reputation: 99

Same issue running Xcode-12.5.1 and iOS-14.5. Solution:

  • Simulator > Device > Trigger Screenshot
  • XCode > Window > Devices and Simulators > get your simulator's id
  • Screenshots saved at: ~/Library/Developer/CoreSimulator/Devices/20CAAAC7-3E70-43B1-B636-A1810A678829/data/Media/DCIM/100APPLE/

Upvotes: 3

JoaquinBu
JoaquinBu

Reputation: 401

Workaround using Edit > Copy Screen

Upvotes: 1

giorgio79
giorgio79

Reputation: 4189

Not exactly a solution, but you can do it inside the iPhone

Device -> Trigger Screenshot

and then Where are iOS simulator screenshots stored?

Upvotes: 3

Hassan Ansari
Hassan Ansari

Reputation: 314

I've a similar issue, the only difference is that I can take a different screenshot after I erase all data.

Upvotes: 1

Panagiotis Koursaris
Panagiotis Koursaris

Reputation: 4013

There is a workaround using the terminal:

xcrun simctl io booted screenshot MyScreenshot.png

This will save the screenshot in the current directory.

Upvotes: 14

Related Questions