To get tests running on my iOS devices, I needed to do a couple things:
- First I installed node.js using homebrew: brew install node.
- Then I installed authorize-ios: I used npm to install it by running npm install -g authorize-ios from the terminal. Once installed, I ran sudo authorize-ios.
- Once that was done, I installed iDeviceInstaller using brew install ideviceinstaller.
- Finally I installed the ios-webkit-debug-proxy using brew install ios-webkit-debug-proxy.
To run my tests I bring up my appium server and run ios-webkit-debug-proxy from a separate terminal window using a command like: ios_webkit_debug_proxy -d -c insertUdidHere:27753 If this connects you should see the terminal window populates with info as actions are performed in Safari (either manually or via appium).
If you want to run tests in Safari, you will need to use the Safari Launcher app. Note you will need to rebuild this app using an apple development certificate that contains your tests devices. This rebuilt app needs to have a bundle ID of com.bytearc.SafariLauncher. This need to be put in the **node_modules > appium-ios_driver > build > SafariLauncher ** folder of your appium installation.