关于***-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

#import

#endif

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


本文固定链接: http://blog.wwllcchf.com/?p=374 | 吴文龙的个人博客

作者:wuwenlong 于2013年10月15日发表 &
关于***-Prefix.pch has been modified since the precompiled header was built的错误 | 吴文龙的个人博客

报歉!评论已关闭.