遇到的坑
按照appium-doctor的提示,安装好所缺少的各种组件。实际运行Appium的inspector时,参数都输入正确,但是Appium一直提示三个问题:
-
idevice_id没有安装。具体提示为:[XCUITest] The ‘idevice_id’ program is not installed. If you are running a real device test it is necessary. Install with ‘brew install libimobiledevice --HEAD’

-
ios-deploy无法使用。具体提示为:[MJSONWP] Encountered internal error running command: Error: Could not initialize ios-deploy make sure it is installed (npm install -g ios-deploy) and works on your system.

-
carthage可执行文件找不到。具体提示为:Error: Carthage binary is not found. Install using
brew install carthageif i

本文介绍了在使用Appium进行Mac+iOS设备UI自动化测试时遇到的三个问题,包括idevice_id未安装、ios-deploy不可用以及Carthage二进制文件找不到的错误。通过查看脚本文件并修改环境变量,成功解决了这些问题。提供了两种解决方案,包括创建软链接和修改环境变量设置。
最低0.47元/天 解锁文章
1243

被折叠的 条评论
为什么被折叠?



