转载网址1.http://wiki.baidu.com/pages/viewpage.action?pageId=526595855
转载网址2.https://www.jianshu.com/p/ee40fb29a137
转载网址3.https://www.jianshu.com/p/0667488b31b3
转载网址4.https://www.jianshu.com/p/3f896a349dab
克隆WebDriverAgent
1.git clone https://github.com/facebook/WebDriverAgent
2.git clone https://github.com/facebook/WebDriverAgent.git (推荐)
安装 brew install carthage
初始化
./Scripts/bootstrap.sh
安装必要的依赖库:
brew install libimobiledevice --HEAD -g
brew install ideviceinstaller -g
npm install -g ios-deploy #如果是iOS10以上的系统才需要安装
更新carthage版本:brew upgrade carthage
3. 删除carthage旧版本: brew cleanup carthage
查看版本 carthage version
先定位到WebDriverAgent 所在路径
$ cd /Users/XXXX/xxx/WebDriverAgent
然后运行:
$ mkdir -p Resources/WebDriverAgent.bundle
$ sh ./Scripts/bootstrap.sh
成功安装
如果访问不到,可以用端口转发
brew install libimobiledevice
iproxy 8100 8100