I am trying to run this post to run UIAutomation scripts on iOS devices from the command line, but I cannot get it to work.
This is the command I'm using right now: tools -t / Applications / Xcode.app / Contents / Applications / Instruments.app / Contents / PlugIns / AutomationInstrument.bundle / Contents / Resources / Automation.tracetemplate / Users / X / Library / Developer / Xcode / DerivedData / TestiPhoneAutomation2-dyufpxsavtdqkybpagcoawdudzid / Creation / Products / Debug-iphoneos / TestiPhoneAutomation2.app -e UIASCRIPT "/Users/X/Workspaces/TestiPhoneAutomation/testIIUES-XUES-XUES-XUES-2Up Users / "-w 80bf5b ... UDID ... dfb52543 -v
It works well on the simulator (replacing Debug-iphoneos with Debug-iphonesimulator, it also ignores -w in this case), but if I run it using an application compiled for the device, it crashes (I tried with release and debugging, I get same result).
The error I am getting is:
Malfunction threshold posix; launch interruption (binary == / Users / X / Library / Developer / Xcode / DerivedData / TestiPhoneAutomation 2-dyufpxsavtdqkybpagcoawdudzid / Build / Products / Debug-iphoneos / TestiPhoneAutomation2.app / TestiPhoneAutomation2). 2012-10-03 Tools 12: 10: 36.609 [76151: 1603] Recording canceled: Failed to start at least one target; interrupt Trace Trace Error: Could not start tracing.
source share