我已经设置了 UI 测试项目,并且在 xCode 7.2 中运行良好。由于我升级到 xCode 7.3,我无法在控制台中打印任何变量。我在应用程序(主项目)和 UI 测试中都设置了断点,“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>
...
...
有没有人遇到同样的问题?有谁知道导致此失败的原因和任何建议?