找回密码
 立即注册
搜索

本文来自

iOS开发交流区

iOS开发交流区

人已关注

请添加对本版块的简短描述

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

[复制链接]

1

主题

1

帖子

31

积分

新手上路

Rank: 1

积分
31
QQ
522 seuseu 发表于 2018-9-11 13:46:19
- 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 内存释放问题
楼主热帖
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重新编辑 ]
回复

使用道具 举报

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

本版积分规则