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

当从一台机器上把源码拷贝到另一台机器上时,出现了如下错误。

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

你可能感兴趣的:(关于***-Prefix.pch has been modified since the precompiled header was built的错误)