查看appium环境配置是否完整
查看iOS:appium-doctor --ios 查看androd
问题:Xcode command Line Tools are Not installs
这是因为在从App Store上下载Xcode后,默认是不会安装Command Line Tools的,Command Line Tools是在Xcode中的一款工具,可以在命令行中运行C程序。
解决方案:xcode-select --install
问题 error: RPC failed; curl 16 Error in the HTTP2 framing layers
解决方案:git config --global http.version HTTP/1.1 可以设置 git config --global http.version HTTP/2切换
问题:RPC failed; curl 18 transfer closed with outstanding read data remaining 出现了如上错误,可能是拉取时间过长或项目过大导致
解决方案:git config http.postBuffer 524288000/1048576000 (1G) 增加缓冲
配置git的最低速和最低速时间
//global配置对当前用户生效,如果需要对所有用户生效,则用–system
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999 //单位 秒
//修改host文件
sudo vi /etc/hosts
//修改两个域名
140.82.114.3 github.com 改为:140.82.113.4 github.com
151.101.1.194 github.global.ssl.fastly.net 改为:199.232.69.194 github.global.ssl.fastly.net
//刷新DNS缓冲
sudo killall -HUP mDNSResponder
问题:Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
解决方案:cd /usr/local/Homebrew/Library/Taps/wix/ 如果没有wix文件,创建文件mkdir wix 然后cd wix
git clone https://mirrors.ustc.edu.cn/homebrew-core.git
git clone https://mirrors.ustc.edu.cn/homebrew-cask.git
brew update
问题:Cloning into '/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb'...
解决方案:cd /usr/local/Homebrew/Library/Taps/facebook/ 如果没有facebook文件夹 创建文件夹mkdir facebook 然后 cd facebook
git clone https://github.com/facebook/homebrew-fb
问题:WARN AppiumDoctor ? opencv4nodejs cannot be found.
解决方案:npm -g install opencv4nodejs --ignore-scripts
问题:WARN AppiumDoctor ? set-simulator-location is not installed
解决方案:brew install lyft/formulae/set-simulator-location
问题:WARN AppiumDoctor ? idb and idb_companion are not installed
解决方案:brew tap facebook/fb
brew install idb-companion
pip3 install fb-idb
问题:WARN AppiumDoctor ? applesimutils cannot be found
解决方案:brew tap wix/brew brew install applesimutils
问题:WARN AppiumDoctor ? mjpeg-consumer cannot be found.
解决方案:npm install -g mjpeg-consumer
需要安装 iOS-deploy,一个不需要用Xcode安装和调试应用的命令行工具
sudo npm install -g ios-deploy --unsafe-perm=true