iOS App failing when running UI Test in XCode 7.1.1

牧云@^-^@ 提交于 2019-12-01 05:46:16

问题


I'm creating my first UI Test for my iOS app. Every time I run the test I get the error:

UI Testing Failure - App accessibility isn't loaded

(please see attached image)

plus an error message in the debug console:

dyld: Library not loaded: @rpath/RestKit.framework/RestKit
  Referenced from: /Users/Claus/Library/Developer/CoreSimulator/Devices/<code>/data/Containers/Bundle/Application/<code>/MyApp.app/MyApp
  Reason: image not found

I would like to point out that the RestKit (installed using CocoaPods) library doesn't give any problem when I build and run my app on the simulator or real device.

I have tried looking for both error messages in dev forums (CocoaPods:https://github.com/CocoaPods/CocoaPods/issues/4609) and StackOverflow conversations but I cannot find any relevant help.

Any idea?

Update: it works on a real device (iPhone 5C - iOS 9.1) but keeps on not working on the simulator (iPhone 6 - iOS 9.1).

来源:https://stackoverflow.com/questions/33997979/ios-app-failing-when-running-ui-test-in-xcode-7-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!