【问题标题】:Why does running UIAutomation methods from KIF result in: "UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings"?为什么从 KIF 运行 UIAutomation 方法会导致:“此设备上未启用 UIAutomation。必须在设置中启用 UIAutomation”?
【发布时间】:2015-11-12 20:42:03
【问题描述】:

使用: iOS 8.4、XCode 6.4、KIF 3.2.1 (https://github.com/kif-framework/KIF)

我在真机上遇到以下问题: 在运行 KIF 测试用例时,调用方法“deactivateAppForDuration”会导致在 XCode 控制台中看到以下输出:“UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

在模拟器上,应用确实会在该方法调用的参数中指定的持续时间内进入后台。

  • 我可以确认设备设置中的设置,“开发人员> UIAutomation”已打开。
  • 我正在编译和运行的构建是一个调试构建,并且是 用我的开发者配置文件签名(不是分发 个人资料)。
  • 方案中所有可能的编译配置都是 设置为调试(例如配置文件)
  • 我可以在仪器中记录和回放 UI 交互 开发人员工具(确认应用程序构建正确,并且 手机设置正确)

具体代码: [tester deactivateAppForDuration:5];

我可能会错过什么?

【问题讨论】:

    标签: ios-ui-automation kif kif-framework


    【解决方案1】:

    这是设备上@9​​87654322@ 的一个已知问题,请参阅here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-28
      • 2012-12-05
      • 2013-02-23
      • 1970-01-01
      • 2013-03-04
      • 1970-01-01
      • 2012-05-12
      相关资源
      最近更新 更多