I can install and run the application on the physical iOS device from the command line using the tool tool and run a set of user interface automation tests on the device. I can also create a scheme in Xcode that will install and run the application by automatically downloading the .xcappdata file to the device and adjusting the state of the application.
I am trying to find a way to combine these two and install and run the application on a physical device with a specific .xcappdata file from the command line. I hope the user interface automation test can be run from a shell script using specific application data to replicate errors and prevent regressions. Preferably without having to restart xcodebuild with a new schema for each xcappdata file.
I spent some time searching and cannot find it, so I filed an error message in which this function was added to the tools command (rdar: // 15955912). In the meantime, I'm looking for some workaround for this to happen. Does anyone know of any way to do this?
source
share