【发布时间】:2012-10-25 23:29:52
【问题描述】:
我尝试从设备上的命令行运行 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
谁能告诉我为什么以及如何做到这一点?谢谢!
【问题讨论】:
-
尝试使用
-v详细日志记录运行仪器。它可能会为您提供更多信息 -
另外,请尝试删除您指定的自动化结果目录或指定一个空白目录。有时会在此处写入不完整的结果,并且会影响仪器。
标签: instruments ios-ui-automation