我们经常会遇到 项目加入 C或者C++文件的时候 出现 could not build module foundation错误
需要加上
- #ifdef __OBJC__
- #import <UIKit/UIKit.h>
- #import <Foundation/Foundation.h>
- #import "AppDelegate.h"
- #endif
表示宏内引用的文件确保只被使用Objective-C
语言的文件所引用,保证引用关系的清晰。
我们经常会遇到 项目加入 C或者C++文件的时候 出现 could not build module foundation错误
需要加上
表示宏内引用的文件确保只被使用Objective-C
语言的文件所引用,保证引用关系的清晰。
转载于:https://www.cnblogs.com/penger/p/4645117.html