Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Take screenshots in the iOS simulator

I want to take a screenshot of my iOS application when it is running in the simulator, and save the screenshot on my Mac. How can I do this?

like image 391
Shreyash Mahajan Avatar asked Aug 17 '11 12:08

Shreyash Mahajan


People also ask

Where do screenshots go iOS simulator?

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 of the entire page in simulator?

On many Android devices, you can capture a screenshot with a key-combination: Simultaneously press-and-hold Power and Volume-down. You can also capture a screenshot with Android Studio as follows: Run your app on a connected device or emulator.

How do you take a screenshot in Flight simulator?

When you're in-game, you can then press either ALT+F1 to screenshot or ALT+F2 to activate photo mode. Photo mode is the easier to use of these two and allows you to tweak settings then simply click "snap" to take screenshots.


2 Answers

It's just as simple as command+s or File > Save Screen Shot in iOS Simulator. It will appear on your desktop by default.

like image 107
Wojciech Rutkowski Avatar answered Sep 17 '22 01:09

Wojciech Rutkowski


An update with Xcode 11.4 simulator

To capture a screen shot, click on 'Camera' icon/action button, on the top bar of simulator.

enter image description here

OR

Select Save Screen Shot menu item, from File menu.

File => Save Screen Shot


Use ⌘ + S to capture a screen shot.
(Use window + s, if you are using windows/non-apple keyboard).

enter image description here

See for more details: How to change simulator scale options with Xcode 9+.


Tip 1: How do you get screen shot with 100% (a scale with actual device size) that can be uploaded on AppStore?

Disable Optimize Rendering for Window scale from Debug menu, before you take a screen shot.

Here is an option

Menubar ▶ Debug ▶ Disable "Optimize Rendering for Window scale"

enter image description here


Tip 2: Where is screen shot saved (Default Path)? How to change default path?

Simulator saves screen shot file on (logged-in user's) desktop and it's default path.

To change default path (with Xcode 9+), press and hold ⌥ Option (alt) button from keyboard, while you take a screen shot.
Or
Using Mac Keyboad: Press keys ⌥ Option + + s all together.
It will show to a dialog with file storage options and also allows to set/change default path.

enter image description here


Tip 3: How to take a screen shot with Device Bezel?

Enable Show Device Bezel from Window menu.

Here is an option

Menubar ▶ Window ▶ Enable "Show Device Bezel"

enter image description here

Now,

  1. Press + shift + 4 + Spacebar, all together in Mac Keyboard. (A window snap capture mode will become active)
  2. Select Simulator window/frame, that you want to capture. It will save screenshot with device bezel (with shadow effect in background) on (logged-in user's) desktop.

You can also remove the Simulator toolbar as described here.

like image 31
Krunal Avatar answered Sep 20 '22 01:09

Krunal