Installation Guide for Appium 1.6.3
A.) System Requirements : -
- Require node 4 or above
- Xcode 8 iOS 10
B.) Open terminal and type following command to install Appium 1.6.3 : - npm install -g appium
C.) External Dependencies : -
- Install "Homebrew" by following command : - ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- After instaling Home brew run following commands : -
- brew install ideviceinstaller
- brew install carthage
- npm install -g ios-deploy
- npm install -g deviceconsole
- gem install xcpretty
- brew install libimobiledevice --HEAD (for iOS10)
- brew install libimobiledevice (for iOS 9)
3.) WebDriverAgent Configuration : -
- Go to newly installed Appium directory and navigate to “node_modules/appium-xcuitest-driver/WebDriverAgent”
- Run following command : - mkdir -p Resources/WebDriverAgent.bundle
- Run following command : - sh ./Scripts/bootstrap.sh -d
- Open Xcode with WebDriverAgent.xcodeproj
- Build WebDriverAgent project with provisioning profile.
- Now run following command : -
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=UDID of device' test
Details about commands
1.)Homebrew : - Package manager for macOS.
2.)ideviceinstaller : - Cross-platform library and tools for communicating with iOS devices
3.) carthage : - A dependency manager that gets the job done without taking over the responsibility of Xcode.
4.)ios-deploy :- debug iOS apps without using Xcode
5.) deviceconsole : - iOS system log tailer.
6.) xcpretty : - flexible and fast xcodebuild formatter.
7.) libimobiledevice : - A cross-platform software protocol library and tools to communicate with iOS