Change the Location of Screen Shots Saved by the iOS Simulator

大兔子大兔子 提交于 2019-11-29 13:23:44

In Xcode 9 you can hold down Option while saving a screenshot and we will prompt you for the location. Check the "Use this as the default location" box to make the selected directory the default for all screenshots.

Simulator saves screen shot file on (logged-in user's) desktop and it's default path.

To change default path (with Xcode 9+), press and hold ⌥ Option (alt) button from keyboard, while you take a screen shot.
Or
Using Mac Keyboad: Press keys ⌥ Option + + s all together.
It will show a dialog with file storage options and also allows to set/change default path.

I use Automator. It's easy and free.

You will not be able to do that.

An easy alternative could be (after changing the default screenshot directory):

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

It can easily be done using the new command line interface (since Xcode 8.2)

xcrun simctl io booted screenshot ~/Desktop/screenshot.png

Replace ~/Desktop/screenshot.png with your folder location and it will be saved on there.

Further information in this blog: https://medium.com/@hollanderbart/new-features-in-xcode-8-2-simulator-fc64a4014a5f#.bzuaf5gp0

You can use Automator to create a Folder Action workflow to automatically move screen shots from Desktop to your desired folder.

Steps: Filter items containing iOS Simulator Screen Shot in name. Then move those items to your chosen folder.

Here's a sample https://github.com/chrisamanse/iOS-Simulator-Screenshot-Mover

Just Press Option + command + s together and it will prompt you a dialog where you want to save screenshot.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!