1、检查carthage是否已安装过:brew install carthage
2、如果安装过,则卸载:brew uninstall -g carthage,
卸载后安装carthage:brew install carthage;
关联carthage: brew link carthage
然后在执行:cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
mkdir -p Resources/WebDriverAgent.bundle
sh ./Scripts/bootstrap.sh -d
然后就成功啦