ui-testing – UI测试xCode 7.3 – 无法在控制台中打印变量(即’po app’):(无法构建Objective-C模块’Bolts’)

前端之家收集整理的这篇文章主要介绍了ui-testing – UI测试xCode 7.3 – 无法在控制台中打印变量(即’po app’):(无法构建Objective-C模块’Bolts’)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经设置了UI测试项目,并且在xCode 7.2中完美运行.自从我升级到xCode 7.3后,我无法在控制台中打印任何变量.我在Application(主项目)和UI Test中设置了断点,’po’命令在主项目中工作,但是一旦到达UI测试,’po’命令就会停止工作.我已经尝试了几乎所有可以在互联网上找到的解决方案,但仍然没有运气.它抱怨我在UI测试中根本不使用的Objective-C模块“螺栓”.以下是错误消息的外观:

(lldb) po app
error: Error in auto-import:
Failed to get module 'MyUITestProject' from AST context:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/Bolts-umbrella.h"
        ^
/Users/../Pods/Target Support Files/Bolts/Bolts-umbrella.h:7:9: note:     in file included from /Users/../Pods/Target Support Files/Bolts/Bolts-    umbrella.h:7:
#import "BFAppLinkReturnToRefererController.h"
        ^
/Users/../Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.h:14:9:     error: include of non-modular header inside framework module     'Bolts.BFAppLinkReturnToRefererController'
#import <Bolts/BFAppLinkReturnToRefererView.h>
...
...

有没有人遇到同样的问题?有谁知道导致这种失败的原因和任何建议?

解决方法

删除

/Users/{User}/Library/Developer/Xcode/DerivedData

然后重新启动Xcode.

猜你在找的iOS相关文章