美文网首页ios developers
Include of non-modular header in

Include of non-modular header in

作者: 喜相逢v5 | 来源:发表于2018-08-13 00:13 被阅读431次
include of non-modular header inside framework module

当制作自己的pod时,我的代码依赖FMDB第三方库, 编译或者运行demo的时候就会报这个错误。

解决办法一:(这个可以解决.h文件中引入了第三方库的头文件)
PROJECT >Buld Setting 中设置 Allow Non-modular Includes In Framework Modules 为 YES

解决办法二:(这个可以解决.h文件中没有引入第三方库的头文件)

  1. 将#import "**.h" 第三方库写在 .m文件中,而不是放在.h文件中即可

将 #import "MBProgressHUD.h" 这行代码放在 UIView+Hint.m文件中

相关文章

网友评论

    本文标题:Include of non-modular header in

    本文链接:https://www.haomeiwen.com/subject/txaebftx.html