Take screenshots in the iOS simulator

前端 未结 17 1568
不知归路
不知归路 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:34

    Since Xcode 8.2, you can also save a screenshot with the following command:

    xcrun simctl io booted screenshot

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

提交回复
热议问题