我尝试从设备上的命令行运行 Instruments 4.5。我有以下
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
当我在 iPod 上运行时,我还尝试省略路径名和 .app 扩展名。并尝试了 Release-iphoneos 和 Debug-iphoneos 构建。但无论我做什么,它总是给我错误:
Instruments Trace Error : Failed to start trace
谁能告诉我为什么以及如何使这项工作?谢谢!