美文网首页
导入.C文件报错“Could not build module

导入.C文件报错“Could not build module

作者: 筱笑 | 来源:发表于2018-08-22 14:43 被阅读41次

解决办法:
在.pch文件里的OC头文件放入 #ifdef __OBJC__ #endif 之间,是为了避免将其认为是C文件。

如下所示:

#ifndef PrefixHeader_pch
#define PrefixHeader_pch

#ifdef __OBJC__

#import "BKHeaderFile.h"
#import "BKHeaderMacro.h"

#endif


#endif /* PrefixHeader_h */

相关文章

网友评论

      本文标题:导入.C文件报错“Could not build module

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