天天看点

mac搭建 appium 遇到的坑(二)

1、

mac搭建 appium 遇到的坑(二)

ffmpeg cannot be found

输入brew install ffmpeg即可解决

mac搭建 appium 遇到的坑(二)

2、npm i -g mjpeg-consumer

解决 mjpeg-comsumer cannot be found的问题

3、安装idb

mac搭建 appium 遇到的坑(二)

命令如下:

brew tap facebook/fb

brew install idb-companion

pip3.6 install fb-idb

说明:执行 pip3.6 install fb-idb可能会报-bash: pip3.6: command not found

解决办法:

配置环境变量

执行 open .bash_profile打开添加

export PYTHON_HOME=/home/dbuser/Python-3.6.1
export PATH=$PYTHON_HOME/bin:$PATH
           

注意:

mac搭建 appium 遇到的坑(二)

这里是自己安装的Python版本哦,要改成自己的,同样

mac搭建 appium 遇到的坑(二)

这里也是要改成自己的Python版本

后执行使之生效:

source ~/.bash_profile

在执行pip3.6就OK了。

mac搭建 appium 遇到的坑(二)

4、缺少applesimutils

brew tap wix/brew

brew install applesimutils

5、提示缺少bundletool.jar

在https://github.com/google/bundletool/releases 下载bundletool.jar,

改名成这个bundletool

在android sdk目录下,创建bundle-tool目录,把jar包放入,

在终端切换到当前目录下

并执行

chmod +x bundletool.jar

命令给jar包加权限

修改环境变量,path后追加,:$ANDROID_HOME/bundle-tool/,

mac搭建 appium 遇到的坑(二)

最后source一下就好了

继续阅读