XCode 4 存档错误:找到一个或多个 PCH 文件,但它们无效 [英] XCode 4 Archiving Error: one or more PCH files were found, but they were invalid

查看:20
本文介绍了XCode 4 存档错误:找到一个或多个 PCH 文件,但它们无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此处记录一个奇怪的 XCode 4 错误以供将来参考:

Documenting an odd XCode 4 Error here for future reference:

找到了一个或多个 PCH 文件,但它们无效"

"one or more PCH files were found, but they were invalid"

清理并不能解决问题,您需要通过按住 ALT 并从菜单中选择产品来清理构建文件夹.Clean"条目现在将更改为Clean Build Folder",这将清除错误的 PCH 重复项并无错误地编译.

Cleaning does not fix the issue, you need to clean the Build Folder by holding down ALT and selecting Product from the menu. The "Clean" entry will now have changed to "Clean Build Folder" which will wipe the bad PCH duplicates and compile without errors.

推荐答案

我不得不读了几遍才明白发生了什么.原始海报回答了他自己的问题.修复:

I had to read this a few times to get what was going on. The original poster answered his own question. To fix:

通过按住 ALT 键并从菜单中选择产品来清理构建文件夹.Clean"条目现在将更改为Clean Build Folder",这将清除错误的 PCH 重复项并无错误地编译.

Clean the Build Folder by holding down ALT and selecting Product from the menu. The "Clean" entry will now have changed to "Clean Build Folder" which will wipe the bad PCH duplicates and compile without errors.

这篇关于XCode 4 存档错误:找到一个或多个 PCH 文件,但它们无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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