Alright… After scouring the internet and garnering help from fellow employees, I’ve finally cracked the nut.
The issue was with my provisioning profile and the safarilauncher.zip file bundle ID. In order to remedy this issue I had to do the following:
- Create a new provisioning profile with a wildcard app ID and that contains the device that you want to test on.
- Download the provisioning profile and double click on it to add it to Xcode.
- Download safarilauncher from git at https://github.com/budhash/SafariLauncher
- Open the SafariLauncher.xcodeproj downloaded from git in xcode and make sure you set your Build Settings correctly. This means setting the Code Signing Identity and Provisioning Profile to the one you just uploaded to xcode.
- Run the build script found on the safari launcher git repo from the terminal https://github.com/budhash/SafariLauncher/blob/master/build.sh
- This will generate a safarilauncher.zip
- Find the following folder in the location where Appium is installed node_modules/appium/build/SafariLauncher and replace the safarilauncher.zip file with the one you created
- now make sure you have the ios_webkit_debug_proxy installed and launched from the terminal with the following command ios_webkit_debug_proxy -d -c Your Device’s UDID:27753
- Now you should be able to run your tests assuming you’ve set your capabilities and appium settings correctly.