iOS file 'XX-Prefix.pch' has been modified since the precompiled header was built

      切换模拟器到这个的时候,运行程序时会报错: file 'XX-Prefix.pch' has been modified since the precompiled header was built,

在其它的模拟器环境中则正常运行。下面为解决这个问题的方法:


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

iOS file 'XX-Prefix.pch' has been modified since the precompiled header was built_第1张图片

然后,重新编译项目

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

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

问题解决了。


你可能感兴趣的:(ios,xcode,解决方法)