【问题标题】:Can't start trace when run instrument 4.5 from the command line on devices从设备上的命令行运行仪器 4.5 时无法启动跟踪
【发布时间】: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


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-10
    • 2017-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多