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