【问题标题】:accessibility detected as not on in KIF可访问性在 KIF 中检测为未启用
【发布时间】:2012-08-28 23:42:21
【问题描述】:

我已在 iOS 模拟器中打开辅助功能并尝试运行我的 KIF 测试,但我经常收到以下错误:

** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The accessibility inspector must be enabled in order to run KIF tests. It can be turned on in the Settings app of the simulator by going to General -> Accessibility.'

我已经在 plist 中仔细检查了它是否通过以下方式启用:

/usr/libexec/PlistBuddy -c "Print :AXInspectorEnabled"  ~/Library/Application\ Support/iPhone\ Simulator/5.0/Library/Preferences/com.apple.Accessibility.plist

它表明它是。

有什么想法吗?

【问题讨论】:

    标签: iphone ios ipad ios-simulator kif


    【解决方案1】:

    我能够通过在 applicationDidBecomeActive 中运行测试来解决此问题

    【讨论】:

      【解决方案2】:

      测试可访问性检查器的代码对我来说也失败了。我分叉了 KIF 存储库并在此处修复:https://github.com/mflint/KIF/tree/fix-accessibility-inspector-detection

      在此处拉取请求:https://github.com/square/KIF/pull/152

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-02-10
        • 1970-01-01
        • 1970-01-01
        • 2015-01-30
        • 2014-01-05
        • 1970-01-01
        • 2015-08-20
        • 2019-02-06
        相关资源
        最近更新 更多