私有库 引用MBProgressHUD的头文件报错

[复制链接]
86 2

马上注册,跟各大iOS开发大神交流、切磋。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
- ERROR | [LDBase/Category] xcodebuild: Returned an unsuccessful exit code.

- ERROR | [LDBase/Category] xcodebuild:??/Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ecpfyssrfgkvfjcoddydsmzodaid/Build/Products/Release-iphonesimulator/LDBase/LDBase.framework/Headers/MBProgressHUD+MJ.h:8:9: error: include of non-modular header inside framework module 'LDBase.MBProgressHUD_MJ': '/Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ecpfyssrfgkvfjcoddydsmzodaid/Build/Products/Release-iphonesimulator/MBProgressHUD/MBProgressHUD.framework/Headers/MBProgressHUD.h' [-Werror,-Wnon-modular-include-in-framework-module]

我在验证spec文件时 报错如上 原因是我的私有库里的Category文件夹下 有个分类是对MBProgresssHUD添加的分类


根据网上的做法 分类的.h中不import 而是用@class
.m中#import "MBProgressHUD.h"
但是 再次验证还是报错 - ERROR | [LDBase/Category] xcodebuild: Returned an unsuccessful exit code.
- ERROR | [LDBase/Category] xcodebuild: /Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ekzqjwuwekgezsbtwdotozypesau/Build/Products/Release-iphonesimulator/LDBase/LDBase.framework/Headers/MBProgressHUD+MJ.h:8:9: error: include of non-modular header inside framework module 'LDBase.MBProgressHUD_MJ': '/Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ekzqjwuwekgezsbtwdotozypesau/Build/Products/Release-iphonesimulator/MBProgressHUD/MBProgressHUD.framework/Headers/MBProgressHUD.h' [-Werror,-Wnon-modular-include-in-framework-module]
[ 此帖被buliceli在2018-05-05 14:45重新编辑 ]




上一篇:求助,删除cell里的textfiled, textfiled里的数据没有删除
下一篇:VC 内存释放问题

举报 使用道具

回复

2 个评论

hotice  新手上路  发表于 2018-9-11 22:34:17  | 显示全部楼层
- ERROR | [LDBase/Category] xcodebuild: Returned an unsuccessful exit code.

- ERROR | [LDBase/Category] xcodebuild:??/Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ecpfyssrfgkvfjcoddydsmzodaid/Build/Products/Release-iphonesimulator/LDBase/LDBase.framework/Headers/MBProgressHUD+MJ.h:8:9: error: include of non-modular header inside framework module 'LDBase.MBProgressHUD_MJ': '/Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ecpfyssrfgkvfjcoddydsmzodaid/Build/Products/Release-iphonesimulator/MBProgressHUD/MBProgressHUD.framework/Headers/MBProgressHUD.h' [-Werror,-Wnon-modular-include-in-framework-module]

我在验证spec文件时 报错如上 原因是我的私有库里的Category文件夹下 有个分类是对MBProgresssHUD添加的分类


根据网上的做法 分类的.h中不import 而是用@class
                                    .m中#import "MBProgressHUD.h"
但是 再次验证还是报错 - ERROR | [LDBase/Category] xcodebuild: Returned an unsuccessful exit code.
- ERROR | [LDBase/Category] xcodebuild:  /Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ekzqjwuwekgezsbtwdotozypesau/Build/Products/Release-iphonesimulator/LDBase/LDBase.framework/Headers/MBProgressHUD+MJ.h:8:9: error: include of non-modular header inside framework module 'LDBase.MBProgressHUD_MJ': '/Users/lidongdong/Library/Developer/Xcode/DerivedData/App-ekzqjwuwekgezsbtwdotozypesau/Build/Products/Release-iphonesimulator/MBProgressHUD/MBProgressHUD.framework/Headers/MBProgressHUD.h' [-Werror,-Wnon-modular-include-in-framework-module]
[ 此帖被buliceli在2018-05-05 14:45重新编辑 ]

举报 使用道具

回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

搜索
热搜: iOS swift 下拉刷新
  • 版块推荐
  • 百宝箱

图文热点

更多

精华推荐

更多

社区学堂

更多

客服中心

关于我们
关于我们
友情链接
联系我们
帮助中心
精贴推荐
源码上传
注册登录
服务支持
资源下载
关注我们
官方微博
官方空间
快速回复 返回顶部 返回列表