Ant6n
Ant6n

Reputation: 2007

How to Change Directory where iOS Simulator Saves Screenshots?

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)

Upvotes: 11

Views: 2964

Answers (4)

pkamb
pkamb

Reputation: 34993

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:

File > New Screen Shot...

This presents a file "Save As..." dialog. Note the new checkbox on the dialog:

Use this as the default location

Check that checkbox to change the default directory for ⌘S iOS Simulator screenshots.

Menu item for "New Screen Shot..."

Checkbox for "Use this as the default location"

Upvotes: 4

AgentK
AgentK

Reputation: 685

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"

Upvotes: 7

pkamb
pkamb

Reputation: 34993

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

rdar://26127809
Allow iOS Simulator to specify a non-Desktop directory for CMD-S screenshots.

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.

Hazel watches whatever folders you tell it to, automatically organizing your files according to the rules you create.

http://www.noodlesoft.com/hazel.php

Hazel interface.

Upvotes: 3

Koop Otten
Koop Otten

Reputation: 429

You will not be able to do that.

An easy alternative could be:

  1. press cmd+shft+4
  2. press spacebar
  3. Click your iPad/iPhone simulator window

with changing the default screenshot directory: Change the Screen Shot Save File Location in Mac OS X

Upvotes: -2

Related Questions