如何修复PCH错误? [英] How to fix PCH error?

查看:219
本文介绍了如何修复PCH错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Xcode 中创建我的应用程序时,我收到此错误消息:

When I try to build my app in Xcode, I get this error message:



编译器((clang-425.0.27))创建的PCH文件((clang-425.0.24))

PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))

这不是以前发生的,但是这是更新Xcode后的第一个版本。

It doesn't happen before, but this was the first build after updating Xcode.

其他应用程序,但不是这个特定的

Other apps work, but not this specific one.

如果我关闭预编译前缀头设置,它会工作。

If I turn off the "Precompile Prefix Header" setting, it works.

如何修复此错误并仍保留此设置?

How do I fix this error and still keep that setting on?

推荐答案

缓存问题。通常,您可以按住选项键,然后选择产品>清理生成文件夹... 来解决此问题。

This is often a caching problem. Usually it can be resolved by holding down the Option key and choosing Product > Clean Build Folder...

这篇关于如何修复PCH错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆