case :
在.pch 文件引入xxx.h 报错could not build module foundation Error
解决方案:
在引用头文件开始加入
#ifdef __OBJC__ 结束时加入
#endif
eg:
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#ifdef __OBJC__
#import <xxx.h>
#endif
#endif
本文介绍了解决在.pch文件中引入特定头文件(如xxx.h)时遇到的“couldnotbuildmodulefoundationError”错误的方法。通过条件编译预处理器指令,可以有效地避免此类错误。
case :
在.pch 文件引入xxx.h 报错could not build module foundation Error
解决方案:
在引用头文件开始加入
#ifdef __OBJC__ 结束时加入
#endif
eg:
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#ifdef __OBJC__
#import <xxx.h>
#endif
#endif
3787

被折叠的 条评论
为什么被折叠?