读书人

关于*Prefix.pch has been modified s

发布时间: 2012-11-22 00:16:41 作者: rapoo

关于***-Prefix.pch has been modified since the precompiled header was built的错误

自己在Xcode4.5上写的ios小程序,由于在两台机器上进行了修改。当从一台机器上把源码拷贝到另一台机器上时,出现了如下错误。

fatal error: file'/Volumes/work/iosdev/LoveWeather/LoveWeather/LoveWeather-Prefix.pch' has beenmodified since the precompiled header was built

在网上没有找到合适的解决方法之后,自己试着做了如下修改,程序运行正常了。

错误修改

找到***-Prefix.pch文件,把中间的

#ifdef __OBJC__

#import<UIKit/UIKit.h>

#import<Foundation/Foundation.h>

#endif

注释掉。运行程序。Bulid success之后。程序停止运行。解开注释。再运行一次就好了。

读书人网 >移动开发

热点推荐