(1)UITargetAppPath should be provided
参考解决方案:https://stackoverflow.com/questions/39589409/unit-test-fails-in-xcode-8
可在TARGETS---UserFmdbTests---Testing处将值先设置成None,再换回之前的值就行,如下图:

(2)错误信息:Library not loaded:

解决方法: TARGETS -> WebDriverAgentRunner -> Build Phases -> Copy frameworks -> Add RoutingHTTPServer.framework

(3)如果你在模拟器上跑是好的,真机却运行不了,clean无数次都会报cocoapods里的文件找不到,不要抓狂,此时需要修改你的UITest文件的设置信息,与原项目一致,因为Swift的桥接文件很可能在你第一次创建 Swift 类时 Xcode 自动帮你配置了项目,你可能没有意识到 build setting 其实已经更改了。如下图

需要保持一致的内容如下图:


网友评论