Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 807
tubbytoad42 Avatar asked Dec 18 '20 18:12

tubbytoad42


People also ask

Why does my iPhone keep taking random screenshots?

iPhone taking random screenshots can also be caused by the Back Tap feature. If it's enabled and the Screenshot function is assigned to it, it can easily generate unexpected print-screens. How to: Open Settings and browse for Accessibility. Tap on Touch and scroll all the way down to Back Tap.

Where do iOS simulator screenshots go?

If you take a screenshot from within your app running on the simulator, and then save it to photos app on that simulator, then it is stored in some library folder of that specific Simulator.

How do I take a screenshot on simulator?

Press PrtScn or PrtSc on your keyboard to capture your view. Then paste that into MSPaint or similar and save it. Press Windows Key and Print Screen button at the same time - this captures and saves your entire screen as a PNG and stores it under C:\Users\<user>\Pictures\Screenshots.

How do I change iOS screenshot settings?

On the “Touch Settings” screen, scroll down until you see the “Back Tap” option, then tap it. In “Back Tap” settings, you have a choice of assigning the screenshot action to either two taps (“Double Tap”) or three taps (“Triple Tap”) on the back of the case.


Video Answer


4 Answers

There is a workaround using the terminal:

xcrun simctl io booted screenshot MyScreenshot.png

This will save the screenshot in the current directory.

like image 101
Panagiotis Koursaris Avatar answered Oct 23 '22 16:10

Panagiotis Koursaris


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

Device -> Trigger Screenshot

and then Where are iOS simulator screenshots stored?

like image 42
giorgio79 Avatar answered Oct 23 '22 16:10

giorgio79


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/
like image 3
Vu Trinh Avatar answered Oct 23 '22 16:10

Vu Trinh


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

like image 1
Hassan Ansari Avatar answered Oct 23 '22 16:10

Hassan Ansari