Skip to content

Testing on IOS Device

nicknaky edited this page Oct 26, 2015 · 3 revisions

####Steps

  • Ensure the app is already able to run on IOS devices through ug build ios and ug run ios

  • (new terminal tab) Start livereload server if it is not already running: ug run ios

  • Retrieve the UUID of the ios device: instruments -s

  • (new terminal tab) Start appium with the UUID of device passed in: appium -U <uuid>

  • (new terminal tab) Start ios webkit debug proxy: ios_webkit_debug_proxy -c <uuid>:27753 -d

  • Start up xcode and rebuild the app. Once the build succeeds, ensure xcode is not running the app.

  • In xcode, go to Developer Tools and open Instruments. Start an automation project, select the device along with the Uguru app and then click record.

  • (new terminal tab) Run the protractor test.

####Quirks:

  • Ensure app bundle id is registered with apple developers account

  • Safari web inspector should be enabled in Device Settings -> Safari

  • On iPhone 5 and up, ensure UI Automation is enabled in device settings

  • If encountering "Could not initialize ideviceinstaller": brew install --HEAD ideviceinstaller

Clone this wiki locally