wda usb链接

本文参考:https://diaojunxian.github.io/2016/08/30/iOS%E8%87%AA%E5%8A%A8%E5%8C%96%E5%AE%9E%E8%B7%B5%E2%80%94%E2%80%94WebDriverAgent-%E4%B8%83/

1. clone到本地:git clone https://github.com/libimobiledevice/libusbmuxd.git

2.下载依赖
    brew install libplist
    brew install usbmuxd
    brew install cmake
    brew install automake
    brew install autoconf
    brew install libtool
    brew install pkg-config
    brew install gcc

3.编译安装
   export libplist_CFLAGS='-I/usr/local/Cellar/libplist/1.12/include -I/usr/include/libxml2'
   export libplist_LIBS='-L/usr/local/Cellar/libplist/1.12/lib -lplist'

   ./autogen.sh
   make
   sudo make install

4.运行
   iproxy LOCAL_TCP_PORT DEVICE_TCP_PORT [UDID]
   LOCAL_TCP_PORT填写5000,因为Webdriveragent源码中写的local本地port是5000
   DEVICE_TCP_PORT这里写的是8100,因为启动server以后监听的端口号是8100
   iproxy 5000 8100 8576848aea9bffadcc10da6bd21d98d0f7c1f37c

   启动iproxy以后,正常启动Webdriveragent server,然后在client端用例中传入的ip:port是localhost:5000即可

你可能感兴趣的:(wda usb链接)