When saving a screenshot from the iOS Simulator, the screenshots are saved to the Desktop
After taking a few, my Desktop is quickly polluted with screen shots that don't belong there.
How does one change the directory where iOS Simulator screenshots are saved?
In some issue related to where screenshot gets stored, a commenter responded that 'by default' they get stored on the desktop (implying it could be changed).
(iOS Simulator 8.0, Xcode 6.0.1, Mac OS X 10.9.5)
You will not be able to do that.
An easy alternative could be:
with changing the default screenshot directory: Change the Screen Shot Save File Location in Mac OS X
Following on from: https://stackoverflow.com/a/44810443/14868
As of Xcode 9, you can also set the output folder using the defaults command and integrate it with any machine setup you use.
Example:
defaults write com.apple.iphonesimulator ScreenShotSaveLocation "$HOME/Screen Shots"
EDIT: iOS Simulator custom screenshot directory support added in Xcode 9 beta
The iOS Simulator does not currently have an option to change the default screenshot directory.
Please duplicate my bug report! http://bugreport.apple.com
In the mean time, I use the app Hazel to automatically move iOS Simulator screenshots (taken via ⌘S) from the default Desktop location to my Simulator Screenshots folder.
http://www.noodlesoft.com/hazel.php
Xcode 9 adds behavior for setting a custom directory for iOS Simulator screenshots.
Press ⌥⌘S or Hold the ⌥ Option key and select the menu item:
This presents a file "Save As..." dialog. Note the new checkbox on the dialog:
Check that checkbox to change the default directory for ⌘S iOS Simulator screenshots.