1. 运行模拟器
2. 打开 Terminal.app
3. 截图,输入运行以下命令行
xcrun simctl io booted screenshot
4. 或录制视频
xcrun simctl io booted recordVideo <filename>.<file extension>.
例如: xcrun simctl io booted recordVideo weChatVideo.mov
1. 运行模拟器
2. 打开 Terminal.app
3. 截图,输入运行以下命令行
xcrun simctl io booted screenshot
4. 或录制视频
xcrun simctl io booted recordVideo <filename>.<file extension>.
例如: xcrun simctl io booted recordVideo weChatVideo.mov