mac本appium环境搭建二之Appium-doctor上的各种报错


1.Carthage was NOT found!

    Carthage

            Carthage的目标是用最简单的方式来管理Cocoa第三方框架

            Carthage也是一个比较好用的三方框架管理工具,原理是自动帮你把工程编译为Dynamic            framework(动态库),仅支持iOS8以上,相比Cocoa pods对项目更无侵入性

            你可以使用Homebrew来安装Carthage

            安装完homebrew后执行下面命令

            brew update

            brew install carthage

2.Error running xcrun simctl


   


        解决方法就是去xcode设置里面,将Command line Tools设置一下,在Xcode>preferences>Locations里面,设置之后再运行终端即可

3.opencv4nodejs cannot be found.

    解决方法:

        1.先安装cmake并配置环境变量

            CMake http://www.cmake.org/



            下载安装

            2.配置环境,终端输入 open -e .bash_profile

                                export CMAKE_ROOT="/Applications/CMake.app/Contents/bin/"

                                export PATH="$CMAKE_ROOT:$PATH"

                                执行cmake --version,现实版本号,安装成功

            3.终端运行 npm -g install opencv4nodejs

3.ffmpeg cannot be found

        终端输入:brew install ffmpeg

        完成后检查用命令检查下ffmpeg

4.mjpeg-consumer cannot be found.

        终端输入 npm i -g mjpeg-consumer / sudo npm i -g mjpeg-consumer   

5.set-simulator-location is not installed

    终端输入  brew install lyft/formulae/set-simulator-location

6.db and idb_companion are not installed

    brew tap facebook/fb

    brew install idb-companion

    pip / pip3.7 install fb-idb

    执行 pip / pip3.7 install fb-idb可能会报-bash: pip3: command not found

    重新配置python环境变量,上个文章有python环境变量配置


7.applesimutils cannot be found

    终端输入:

        brew tap wix/brew

        brew install applesimutils

8.ios-deploy cannot be found

    终端输入:

        npm install -g ios-deploy 或 sudo cnpm install -g ios-deploy --unsafe-perm=true       

9.bundletool.jar cannot be found

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

    2.改名成这个bundletool

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

    4.在终端进入到当前目录

    5.给jar包加权限:chmod +x bundletool.jar

    6.修改环境变量:

            open -e .bash_profile

            export PATH=${PATH}:${ANDROID_HOME}/bundle-tools

              source .bash_profile

10.gst-launch-1.0 and/or gst-inspect-1.0 cannot be found

    终端输入  brew install gstreamer


配置结束!

本人mac本的一系列插件及环境配置,有用到记得点个赞!!!

你可能感兴趣的:(mac本appium环境搭建二之Appium-doctor上的各种报错)