Tool - running multiple devices

I can run the tool using the command line for one device / simulator, but I need to run it on two devices. I can achieve this manually by opening two new tool windows and making two copies of js and importing them. But I need to achieve this using the command line. Can someone help me achieve this, or does anyone have recommendations on the same?

+2
instruments
Aug 30 '12 at 11:20
source share
2 answers

I struggled with this, and here is part of my decision. I have done this:

Create trace files in the tools with the script.js file of your choice and save it to disk.

Reads the UDID of all connected devices. Flip all connected devices and replace the UDID in the trace file with the UEID of the current current. In the same loop, the tools open.

for line in $(system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2}'); do UDID=${line} file$x $(replace 345w67ww89ww0w98w762wewq33e2 with ${UDID}) open -a Instruments /PATH/TO/TRACE/file$x done 

This solution will open several tool windows. You can go through them using appleScript to click the record button.

+7
Oct 16 '12 at 7:05
source share

Another way to achieve this is to open two separate instances of Instrument and execute it.

0
Dec 24 '13 at 9:18
source share



All Articles