Created
March 15, 2018 18:56
-
-
Save hanikhan/dd5203d0b2db728d41bf5c43d4c05dfc to your computer and use it in GitHub Desktop.
Setup Appium with real iOS devices on Mac OS X with Xcode 9.2 and iOS 11.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to run Appium locally on real iOS (Xcode 9.2 and iOS 11.2) | |
//Assuming you have homebrew and npm already setup & a valid Apple developer account | |
//these set of commands need to be run from terminal | |
- brew install libimobiledevice --HEAD # install from HEAD to get important updates | |
- brew install carthage | |
- npm install -g ios-deploy | |
- brew install ios-webkit-debug-proxy | |
- npm install -g appium | |
//'Terminal: ' means to be run in terminal | |
Steps to start: | |
- Terminal: cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/ | |
- Terminal: ./Scripts/bootstrap.sh | |
- Connect iOS Device to MAC | |
- On iOS device, go to Settings > Safari > Advanced > Web Inspector > Turn ON | |
- Now navigate to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/ and open the project in Xcode (titled WebDriverAgent.xcodeproj) | |
- Add apple dev profile to all Targets | |
- Inside Xcode, perform Product > Clean | |
- Inside Xcode, perform Product > Build | |
- Terminal: ios_webkit_debug_proxy -c `idevice_id -l`:27753 # to ensure debug proxy listens to port 27753 | |
- Terminal: appium | |
- Get the UDID from iTunes and add it to test script (capability: UDID) | |
- Run the test script (using any IDE or command line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment