直接從客戶端的appium文件夾打開后的webdriveragent編輯會有問題 最后按着下面的步驟去運行
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/
git clone https://github.com/appium/WebDriverAgent
./Scripts/bootstrap.sh
安裝后從以上目錄打開webdriveragent去進行后續操作,能少踩好多坑
參考文章:https://www.cnblogs.com/dreamhighqiu/archive/2004/01/13/11213117.html