I try to run Instruments 4.5 fromt he command line on devices. I have the following
instruments -w UICD -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/xxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/AppName.app -e UIASCRIPT /Users/xxxx/Documents/Automation/test.js -e UIARESULTSPATH /pathName
I also tried omitting the pathname and .app extension as I'm running on an iPod. And tried both Release-iphoneos and Debug-iphoneos build. But no matter what I do, it always gave me the error:
Instruments Trace Error : Failed to start trace
Can anyone tell me why and how to make this work? Thanks!