Take screenshots in the iOS simulator

前端 未结 17 1536
不知归路
不知归路 2020-12-12 08:33

I want to take a screenshot of my iOS application when it is running in the simulator, and save the screenshot on my Mac. How can I do this?

17条回答
  •  时光取名叫无心
    2020-12-12 09:37

    For some reason the commands posted before dont work for me, but this one does:

    xcrun simctl io booted screenshot screenshot.png
    

    Running Xcode 9.2

提交回复
热议问题