Search code examples
iphoneterminalinstrumentsui-automationfrank

Launch my iPhone app on device through instruments


An app I've created is already installed on my device that I simply want to launch using instruments. It is already installed on my device. I simply want to launch the app. I am using this

instruments -w <device_id> -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Activity Monitor.tracetemplate" -D /tmp/ignoredtracedata.trace <app_name>

This is what I get

Instruments Trace Error : (null)

I had this working at one point. Then without making any changes the next day I came to work on it and it wasn't working :(. I've tried things for a couple of hours and heven't made much progress.

I am using the Ruby gem Frank to run tests. I'd like to launch the app in different languages which is why I want to use instruments instead of simply adding the -d debug flag to launch the app on the device.

Does anyone have anything that will help me?


Solution

  • I don't know exactly why this fixed my problem. But I checked which processes were running with $ ps and instruments was running. I just killed instruments sudo killall instruments and it worked.