Appium-ios mac Environment Setup
Author: Max.bai
Time: 2014/10
1. Build the iOS development environment
1.1 System Requirements
MacOS X 10.7 or higher, 10.9.2 recommended
1.2 Xcode requirements
xcode6.0 (Appium 1.3), xcode5.0 (Appium1.2)
1.3 Apple Developer Tools (iPhone simulator SDK, command line Tools)
Install iOS Sdk,command line tools
2. Node JS Installation
Method 1. Open http://nodejs.org/Install node JS
Method 2. Homebrew Install node. js
Installation Successful command line execution
Node-v correctly display node JS version
Npm-v Show NPM version
3. Appium Installation
1. Check that path contains/usr/local/bin
$PATH Output contains/usr/local/bin
2. Installation
Remember: Do not use sudo npm install-g appium installation
Cd/usr/local sudo chown-rf < current user >:staff/usr/local npm install-g appium
APPIUM-V display version number installed correctly
4. Webdriver Installation
NPM Install WD
5. Appium permission settings
sudo authorize_ios
6. Appium Detection Environment
Node Appium-doctor
7. Appium Open
Open Appium
Appium-a 192.168.9.63-p 4723
If you need to connect to the grid hub, open the hub yourself, how to open the hub
Link grid hub requires parameter --nodeconfig /abs/path/to/nodeconfig.json
Other parameter opening parameters are as follows:
Https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/server-args.md
Nodeconfig.json
{" capabilities": [ { "browsername": "Safari (or IPhone ...)", "version": "7.1", " Maxinstances ": 1, " platform ":" Mac ", " PlatformName ":" IOS ", " platformversion ":" 7.1 " } ], "Configuration": { "cleanupcycle": $, "timeout": 30000, "proxy": " Org.openqa.grid.selenium.proxy.DefaultRemoteProxy ", " url ":" Http://192.168.9.63:4723/wd/hub ", " Maxsession ": 1, " port ": 4723, " host ":" 192.168.9.63 ", " register ": True, " registercycle ": 5000, "Hubport": 4444, "Hubhost": "192.168.9.60" } }
Appium-ios mac Environment Setup