【问题标题】:UIAutomation on device hangs in starting capture设备上的 UIAutomation 在开始捕获时挂起
【发布时间】:2013-03-04 19:42:41
【问题描述】:

当我尝试使用 UIAutomation 在设备上捕获 UI 输入时,它挂起并显示“正在启动捕获”。

1) I click on Profile in Xcode which
2) Starts up Instruments where I select Automation and click Profile
3) Which starts Instruments running.  In Scripts I select Add->Create which shows the record button at the bottom 
4) I click the record button and it hangs saying "Starting Capture" and doesn't record my UI input.

我的配置文件方案的构建配置是调试。

知道我缺少什么导致 UIAutomation 挂起吗?

【问题讨论】:

    标签: iphone xcode instruments ui-automation


    【解决方案1】:

    对于 iOS8 设备,还要确保在“设置”中启用 UI 自动化。

    设置 -> 开发人员 -> 启用 UI 自动化

    【讨论】:

    • 你会认为他们会抛出一个错误,它没有启用而不是让它挂起
    • 谢谢。它帮助了我。
    • 也帮助了我。谢谢!
    • 也适用于 iOS 9。
    【解决方案2】:

    想通了。我希望这对其他人有帮助!

    1)  Click on Profile in Xcode (or Cmd-I)
    2)  In Instruments select Automation and click Profile
    3)  Click Instruments Record button to stop the running of the app
    4)  Click Scripts -> Add -> Create
    5)  Click Record button at bottom of Instruments (which is for recording the script)
    6)  Click Record button at top of Instruments (which is for running the app)
    7)  Click on Trace Log -> Script to view the script you are creating.
    

    哇!

    【讨论】:

    • 关于 SO 的最佳答案。所有的 iOS 开发者都应该收到一本小册子。
    【解决方案3】:

    检查您是否在配置文件方案中选择了调试模式,并且您是否拥有正确的签名身份和配置文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-09
      相关资源
      最近更新 更多