首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

关于*Prefix.pch has been modified since the precompiled header was built的异常

2012-11-22 
关于***-Prefix.pch has been modified since the precompiled header was built的错误自己在Xcode4.5上写

关于***-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之后。程序停止运行。解开注释。再运行一次就好了。

热点排行