How to Change Directory where iOS Simulator Saves Screenshots?

后端 未结 4 1428
栀梦
栀梦 2021-02-03 11:13

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\'

相关标签:
4条回答
  • 2021-02-03 11:39

    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.

    0 讨论(0)
  • 2021-02-03 11:52

    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.

    0 讨论(0)
  • 2021-02-03 11:58

    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"

    0 讨论(0)
  • 2021-02-03 12:01

    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

    0 讨论(0)
提交回复
热议问题