1、安装&截图:

brew install libimobiledevice
brew install ideviceinstaller

然后连接 iPhone 手机到电脑,尝试执行截图命令时,报错:

~ % idevicescreenshot
Could not start screenshotr service! Remember that you have to mount the Developer disk image on your device if you want to use the screenshotr service.

2.解决方法:

打开 Xcode,新建任意 app 项目,然后选择你的手机,run 一下。再次截图,即可

~ % idevicescreenshot
Could not start screenshotr service! Remember that you have to mount the Developer disk image on your device if you want to use the screenshotr service.

~ % idevicescreenshot
Screenshot saved to screenshot-2021-07-27-12-55-04.png


↙↙↙阅读原文可查看相关链接,并与作者交流