wda usb链接
2016-12-01 本文已影响0人
美得冒泡的姗迪
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即可