# Set screenshot location

Set default location for Simulator screenshots.

Note that the folder has to exist in the filesystem.

  • Tested on macOS:
    • Catalina
  • Parameter type: string

# Set to ~/Pictures/Screenshots (default value)

defaults write com.apple.iphonesimulator "ScreenShotSaveLocation" -string "~/Pictures/Screenshots" 

# Set to ~/Pictures/Simulator Screenshots

defaults write com.apple.iphonesimulator "ScreenShotSaveLocation" -string "~/Pictures/Simulator Screenshots" 

# Read current value

defaults read com.apple.iphonesimulator "ScreenShotSaveLocation"

# Reset to default value

defaults delete com.apple.iphonesimulator "ScreenShotSaveLocation"