我已在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


它表明它是。

任何想法?

最佳答案

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

关于iphone - 在KIF中检测到可访问性未打开,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12169053/

10-15 06:38