4

我尝试从设备上的命令行运行 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

谁能告诉我为什么以及如何使这项工作?谢谢!

4

1 回答 1

3

我实际上弄清楚为什么这不起作用。上面列出的命令没有错。从命令行运行 Instruments 当前无法在所有受支持的 iOS 设备上运行。相同的命令适用于我的带有 iOS6 的新 ipad,但不适用于带有 ealier iOS 的旧 ipod。我找到了下面的链接。希望这对每个人都有帮助。此外,在某些奇怪的情况下,该命令仅在仪器和 Xcode 未运行时才有效....

https://discussions.apple.com/thread/4344641?start=0&tstart=0

于 2012-12-12T18:43:42.837 回答