我已经建立了UI测试项目,并且在xCode 7.2中工作得很好。因为我升级到了xCode 7.3,所以我不能在控制台中打印任何变量。我在应用程序(主项目)和UI测试中都设置了断点,'po‘命令在主项目中工作,但一旦到达UI测试,'po’命令就停止工作。我已经尝试了几乎所有我能在互联网上找到的解决方案,但仍然没有成功。它抱怨我在UI测试中根本没有使用的Objective-C模块'Bolts‘。以下是错误消息的外观:
(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>
...
...有没有人遇到同样的问题?有没有人知道是什么导致了这次失败,有什么建议吗?
发布于 2018-05-15 10:21:53
删除:
/Users/{User}/Library/Developer/Xcode/DerivedData然后重新启动您的Xcode。
https://stackoverflow.com/questions/36556612
复制相似问题