刚才通过查看Xcode8.2.1的Release Notes,里面说了这个一条:
New Features
-
Dragging an app onto a Simulator window installs the app. (23387069)
-
You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility. To take a screenshot, run the command xcrun simctl io booted screenshot. To take a video, run the command xcrun simctl io booted recordVideo <filename>.<file extension>. (9887264)
意思是说可以通过xcrun simctl io命令来对模拟器进行截图和录制视频。
于是我马上通过终端实践了一下,发现:
-
确实可以做到;
-
并且通过命令行的截图和视频不会有鼠标图标的显示;