swift OC混编工程,xcode断点调试,控制台左侧只有变量名称不显示值,右侧输入po命令,打印除一堆提示

断点调试
swift OC混编工程,xcode断点调试,控制台左侧只有变量名称不显示值,右侧输入po命令,打印除一堆提示

(lldb) po 变量名
warning: Swift error in module 项目名.
Debug info from this module will be unavailable in the debugger.

error: in auto-import:
failed to get module '项目名' from AST context:

...

这种情况,请仔细检查你的桥接文件:项目名-Bridging-Header,是否导入了第三方库。若导入了第三方库,则该库是否是以Cocoapods来管理的,比如AFNetWorking是通过Cocoapods管理的,那么在桥接文件中,你应该

@import AFNetWorking;

而不是
#import "AFNetWorking.h",或者以这种#import导入该三方的其他文件

转自:
https://blog.csdn.net/littleFish_ZYY/article/details/79639974

上一篇:cocoapod Podfile use frameworks swift/oc混编 could not build module xxx


下一篇:Python爬虫! 单爬,批量爬,这都不是事!