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

[复制链接]
108 2
- 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重新编辑 ]

举报 使用道具

回复

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.irunthink.com
搜索
热搜: iOS swift 下拉刷新

图文热点

更多

开发教程

更多

客服中心

400-800 周一至周日 9:30-17:30 仅收市话费

关注我们

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