Xcode出现could not build module foundation错误 解决方案

来源:互联网 发布:桌面便签提醒软件 编辑:程序博客网 时间:2024/06/07 06:36

 一 , pch 是否导入头文件 , 导入是否可用 

 二 . 

在引用头文件开始加入#ifdef __OBJC__ 结束时加入#endif,例如

                #ifndef PureStandard_PrefixHeader_pch
                #define PureStandard_PrefixHeader_pch
                #ifdef __OBJC__
                #import "A.h"
                #import "B.h"
                #endif
                #endif

0 0
原创粉丝点击