0

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

そしてそれはそうであることを示しています。

何か案が?

4

2 に答える 2

4

applicationDidBecomeActiveでテストを実行することで、これを修正できました。

于 2012-10-31T22:00:20.073 に答える
0

アクセシビリティ インスペクターをテストするコードも失敗していました。KIF リポジトリをフォークし、ここで修正しました: https://github.com/mflint/KIF/tree/fix-accessibility-inspector-detection

プルリクエストはこちら: https://github.com/square/KIF/pull/152

于 2012-09-21T00:09:29.060 に答える