https://github.com/imurchie/appium-xcuitest-driver/blob/isaac-rs/docs/real-device-config.md#basic-manual-configuration
http://www.cnblogs.com/meitian/p/7359787.html
preparation:
1 brew install libimobiledevice --HEAD
2 npm install -g ios-deploy
3 npm install -g appium
steps:
1 cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
2 sh ./Scripts/bootstrap.sh
3 change project settings
4 product =》 build
5 xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=device udid' test
6 start appium: appium -a 127.0.0.1 -p 4723
7 run appium (java) test
error tips:
1] I removed all the remnants from xcode using following command
sudo rm -rf ~/Library/Developer/Xcode/DerivedData/WebDriverAgent-*
2] uninstall appium. "npm uninstall -g appium"
3] Install appium 1.7.1: "npm install -g appium"
iphone setting:
General->Settings->Device Management