Change the Location of Screen Shots Saved by the iOS Simulator

前端 未结 7 404
有刺的猬
有刺的猬 2020-12-20 11:06

I\'d like to change the location that screenshots created via File > Save Screen Shot in the iOS Simulator are saved from the desktop to a folder of my choice. How can this

相关标签:
7条回答
  • 2020-12-20 11:50

    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

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