我在 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
它表明它是。
任何想法?