Take screenshots in the iOS simulator
Clash Royale CLAN TAG#URR8PPP
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?
14 Answers
14
It's just as simple as command+s or File
> Save Screen Shot
in iOS Simulator. It will appear on your desktop by default.
File
Save Screen Shot
There is no ready-to-use solution as per stackoverflow.com/q/23661097/1659311
– Wojciech Rutkowski
Apr 24 '15 at 13:09
UIApplicationUserDidTakeScreenshotNotification did not fire.
– tounaobun
Aug 5 '15 at 2:16
In Xcode 9 you can hold down Option and you will be prompted for a location to save the screenshot.
– russbishop
Sep 14 '17 at 19:32
@jameshfisher - This may help you to get prompt for location to save - stackoverflow.com/a/48150656/5638630
– Krunal
Jan 9 at 8:12
on iOS Simulator,
Press Command + control + c
or from menu : Edit>Copy Screen
Command + control + c
Edit>Copy Screen
open "Preview" app, Press Command + n
or from menu : File> New from clipboard
, then you can save command+s
Command + n
command+s
For Retina, activate iOS Simulator then on menu:HardWare>Device>iPhone (Retina)
and follow above process
HardWare>Device>iPhone (Retina)
Command + S
is the way to save on Desktop, (on new iPhone simulators, this was introduced in later simulator)
Use ⌘ + S to capture a screen shot.
(Use window + s, if you are using windows/non-apple keyboard).
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.
Optimize Rendering for Window scale
Debug
Here is an option
Menubar ▶ Debug ▶ Disable "Optimize Rendering for Window scale"
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.
Tip 3: How to take a screen shot with Device Bezel?
Enable Show Device Bezel
from Window
menu.
Show Device Bezel
Window
Here is an option
Menubar ▶ Window ▶ Enable "Show Device Bezel"
Now,
Simulator
Press Command+Shift+4
and then keep the mouse pointer on Simulator and then press "Space Bar"
key one camera icon will appear, now left click
the mouse. Your simulator screen shot is saved on desktop. You can take the screen shot any small screen in the same way.
Command+Shift+4
"Space Bar"
left click
this will not capture scrolled content though
– Code Tree
Mar 9 '17 at 15:11
You should only do this if you want to capture a screenshot with the bezel.
– russbishop
Sep 14 '17 at 19:34
Nice, I wanted the frame too so great solution :)
– Paula Hasstenteufel
Dec 20 '17 at 13:15
You can google for IOS Simulator Cropper software useful for capturing screen shots and also easy to use with various options of taking snapshots like with simulator/without simulator.
Update
Just pressing CMD + S will give you screenshot saved on desktop. Pretty easy huh..
Since Xcode 8.2, you can also save a screenshot with the following command:
xcrun simctl io booted screenshot
xcrun simctl io booted screenshot
Further information in this blog: https://medium.com/@hollanderbart/new-features-in-xcode-8-2-simulator-fc64a4014a5f#.bzuaf5gp0
Great, thanks, because cmd-s crashes for me...
– tontonCD
Jun 20 '17 at 17:33
The crash was a framework bug that we worked around in Xcode 8.3.3. It does not apply to Xcode 9 or later.
– russbishop
Sep 14 '17 at 19:33
Go to menu File->Save Screen Shot
or
Press ⌘+S
Screen shot saves in desktop
First, run the app on simulator.
Then, use command+s, or File -> Save Screenshot in Simulator to take necessary and appropriate shots.
The screenshots will appear on your desktop by default.
This is covered by the accepted answer.
– Davis Herring
Oct 23 '17 at 4:23
In OSX Captain its a bug to take screenshot of simulator. You have to Update your OSX Sierra first then your are able to take. while taking in OSX Captain use terminal command which is xcrun simctl io booted screenshot.
before running this command u have to select desktop in terminal like:
"cd desktop" then run that command. Happy Coding!!!
Press ⌘S or go to File > Save screenshot from your simulator menu and you will get the screenshot saved on your desktop.
Oh my mistake this will be possible only if you are running MAC using VMWare
– Devang
Aug 17 '11 at 12:24
Thanks Devang. May i will try it for VMWare.
– iDroid Explorer
Aug 17 '11 at 12:59
Taking Screen Shot in IOS Simulator is SO Simple.
When you Open Simulator In the Right Lift You See File.
Click On File And You See Option Save Screen Shot.
This Option Saves Your Screen Shot In Default Path Which is Desktop.
This is more or less just a repeat of the existing answers.
– Pang
Mar 2 '17 at 8:47
For some reason the commands posted before dont work for me, but this one does:
xcrun simctl io booted screenshot screenshot.png
Running Xcode 9.2
First method:
Select simulator and press "command + s" button. Screenshot saved on desktop.
Second method:
Select simulator and go to "File > New Screenshot". Screenshot saved on desktop.
What have you added to this question that was worth resurrecting a years old question?
– Fogmeister
May 28 at 14:19
This are the two new features for the Xcode 8.2 Simulator:
Try this below command in Terminal and the screen shot will be stored in the Terminal default location where the command is executed.
You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility.
📷 To take a screenshot, run the command xcrun simctl io booted
screenshot
This answer is a duplicate
– bartosss
Aug 14 '17 at 9:55
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
How do I get it to prompt me for the location to save to?
– jameshfisher
Apr 24 '15 at 12:20