include of non-modular header inside framework module
当制作自己的pod时,我的代码依赖MBProgressHUD 第三方库, pod spec lint 验证过程中一直有这个错误
查了一段时间
1. buldsetting 中设置 Allow Non-modular Includes In Framework Modules 为 YES
但是对我无用
2. 将#import "**.h" 第三方库写在 .m文件中,而不是放在.h文件中即可
e.g.:
我的文件 UIView+Hint
将 #import "MBProgressHUD.h" 这行代码放在 UIView+Hint.m文件中