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?
on iOS Simulator,
Press Command + control + c
or from menu : Edit>Copy Screen
open "Preview" app, Press Command + n
or from menu : File> New from clipboard
, then you can save command+s
For Retina, activate iOS Simulator then on menu:
HardWare>Device>iPhone (Retina)
and follow above process
Command + S
is the way to save on Desktop, (on new iPhone simulators, this was introduced in later simulator)
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.
Press ⌘S or go to File > Save screenshot from your simulator menu and you will get the screenshot saved on your desktop.
Screenshot with device frame
Step - 1 Open quick time player
Step - 2 Tap new screen recording
Step - 3 Select Capture selected window
Step - 4 Cursor point on the simulator. It will automatically select the whole simulator like
Step - 5 Screenshot will open using preview. save it.
Here is some sample screenshot
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.
Since Xcode 8.2, you can also save a screenshot with the following command:
xcrun simctl io booted screenshot
Further information in this blog: https://medium.com/@hollanderbart/new-features-in-xcode-8-2-simulator-fc64a4014a5f#.bzuaf5gp0