I created a simple javascript for my iOS application that I would like to run simultaneously on several iOSDevices connected via USB to one Mac computer. Launching tools connected to iPhone from the command line is fine, but if I try to run a second tool connected to an iPad , the first session of the tools freezes.
After completing the first tool session, I get one of the following lines:
Stopped: Script stopped due to device disconnection
After extensive research on this subject, without any results on this phrase, I tried to read what the Apple Instruments Guide means:
When you select "All processes", "Attach to a process" or "Select target" in the "Target" menu, "Tools" sets the default target for all tools in your selected program. However, there are times when you may need to set a different goal for each tool. You might want to try two different programs at the same time, for example, using the Sampler tool. If you have tools that can track all processes, you might want them to do just that, while tools from one process try only one process.
I am wondering if Automation.tracetemplate only tool for only one process, and what if another process starts with the same Automation trace, then the first is usurped.
Any recommendations would be appreciated, as this is the main unit for conducting our intensive automation tests across several iOSDevices .
March 27, 2012 Patch
The following is the email sent after the Apple error message (developer.apple.com/bugreporter):
I heard from a user interface automation engineer. Automation of the user interface is a single technological tool. Thus, you cannot use it simultaneously on multiple devices.
ios instruments ios-ui-automation
ksig Mar 13 '12 at 20:29 2012-03-13 20:29
source share