iOS 测试 关于 iOS 执行 idevicescreenshot 命令时报错 Could not start screenshotr service! 的解决方法

xiaoxiao · July 27, 2021 · 2285 hits

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
No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up