首页 > 代码库 > iOS 协同开发出fatal error: file ‘XX-Prefix.pch’ has been modified since the precompiled header was built

iOS 协同开发出fatal error: file ‘XX-Prefix.pch’ has been modified since the precompiled header was built

在协同开发的时候,刚刚从svn下载到本地的代码,出现“fatal error: file ‘XX-Prefix.pch‘ has been modified since the precompiled header was built”的问题,这个其实不是什么问题,解决方案如下:

1、找到  XX-Prefix.pch 文件  注释掉下面的代码:

 

#ifdef __OBJC__    #import <UIKit/UIKit.h>    #import <CoreData/CoreData.h>    #import <Foundation/Foundation.h>#endif

 

然后,重新编译项目

2、打开上面步骤中的注释

然后再次编译运行,发现竟然没有上面的错误了,很神奇吧。

问题解决。

iOS 协同开发出fatal error: file ‘XX-Prefix.pch’ has been modified since the precompiled header was built