I am trying to run Tools 4.5 from the 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 to ignore the path and the .app extension when I start the iPod. And tried both Release-iphoneos and Debug-iphoneos build. But no matter what I do, it always gave me an error:
Instruments Trace Error : Failed to start trace
Can someone tell me why and how to do this? Thanks!
source share