1

I'm building a tool for building an iOS app and running UIAutomation on it. So far I've been targeting the iOS Simulator and I've run into a hiccup moving to running on real devices.

I have a feature where the tool reinstalls the app between each test, so that it always runs from an uninitialized and known state, which currently uses xcrun simctl uninstall and obviously doesn't work for real devices. I'm looking for something similar for real iOS devices.

Another working solution would be to reset the app through some nifty command.

I'm not interested in any UI based solutions, it has to run from a commandline.

JBarberU
  • 999
  • 8
  • 16
  • Could this be related http://stackoverflow.com/questions/5125243/how-can-i-reset-the-ios-simulator-from-the-command-line – Sunkas Mar 02 '15 at 12:23

2 Answers2

0

iDeviceInstaller supports uninstalling/installing on real devices.

Uninstall:

/usr/local/bin/ideviceinstaller -U <app_bundleID> -u <device_UDID>

Install:

/usr/local/bin/ideviceinstaller -i <pathToIPA> -u <device_UDID>
JonMaier
  • 1
  • 1
0

We wrote an automation bridge in Illuminator that should allow you to send arbitrary commands to your application (in both the simulator and on real hardware).

It is accessed via the command line through a ruby script.

Malcolm Crum
  • 4,345
  • 4
  • 30
  • 49
Ian
  • 11,280
  • 3
  • 36
  • 58