https://macacajs.github.io/app-inspector/
https://macacajs.github.io/environment-setup
http://www.cnblogs.com/meitian/p/7373460.html
steps:
1 npm install macaca-cli -g
2 macaca doctor
3 npm install app-inspector -g
4 app-inspector -u YOUR-DEVICE-ID --verbose
error tips:
Missing required module 'libxml2'
1) npm i xctestwd
2) copy XCTestWD project (/Users/kellysportshero/node_modules/xctestwd/XCTestWD)
to /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd replace XCTestWD project
(update xctestwd to 1.3.28, there is a known compilation issue occurring for xcode 9.3 at early versions)
3) open XCTestWD project and sign
4)build
xcodebuild -project XCTestWD.xcodeproj -scheme XCTestWDUITests -destination 'platform=iOS,id=udid' XCTESTWD_PORT=8001 clean test