mac 搭建 appium环境

https://tangjun.blog.csdn.net/article/details/90105319

https://www.cnblogs.com/syw20170419/p/10515741.html

https://www.cnblogs.com/syw20170419/p/10515866.html

http://macappstore.org/libimobiledevice/

 

1. 安装 node

2. 安装 appium

npm install -g appium

3. 检查问题

appium-doctor

提示 xcode 有问题,那就下载最新的 xcode 

4. 切换 xcode-select path

查看  xcode-select path

xcode-select -p

 

切换 xcode-select path

sudo xcode-select -switch /Users/JOHN/Downloads/Xcode45-DP3.app # 切换到 xcode 所在目录即可

 5. 提示: Error: Could not detect Mac OS X Version from sw_vers output: '10.14.5'

尝试修复方法一

编辑这个文件

vim  /usr/local/lib/node_modules/appium-doctor/node_modules/appium-support/lib/system.js

增加 10.14.5 

尝试修复方法二

升级 appium-doctor 

npm install appium-doctor -g

 

ios_webkit_debug_proxy cannot be found 解决方法

解决方案:

打开terminal终端,分别输入执行结束,再次运行appium-doctor即可看到运行成功:

1、git -C "$(brew --repo homebrew/core)" fetch --unshallow
2、brew install libimobiledevice --HEAD
3、brew install ios-webkit-debug-proxy --HEAD

bundletool.jar cannot be found

ffmpeg cannot be found 解决方法

brew install ffmpeg

然后需要再次安装 brew install node

npm install -g appium

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章