第一步:创建pch文件
截图如下:
第二步:配置pch文件路径
截图如下:($(SRCROOT) 相对路径)
// PrefixHeader.pch
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#endif /* PrefixHeader_pch */
#ifdef __OBJC__
/*** 添加一些公共类 ***/
#import <CoreData/CoreData.h>
#import "PublicDefine.h"
#import "TJTools.h"
/*** 添加一些公共类 ***/
#endif