Xcode 4.5.2致命错误:预编译头已被修改 [英] Xcode 4.5.2 fatal error: Precompiled header has been modified

查看:176
本文介绍了Xcode 4.5.2致命错误:预编译头已被修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在改变我的项目,建立和运行项目,现在突然当我试图建立我现在得到这个错误:

I've been making changes to my project all day, building and running the project, and now suddenly when trying to build I am now getting this error:

fatal error: file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h'
has been modified since the precompiled header was built




  • 当我尝试清除项目时,转到 Product - > c。清除它拒绝清理并给我相同的错误。

  • 我删除了 .build

  • 我删除了〜/ Library / Developer / Xcode / DerivedData / PROJECT_NAME_HERE 文件夹也没有帮助。

  • 我尝试关闭并重新打开Xcode,但也没有帮助。

    • When I attempt to clean the project by going to Product -> Clean it refuses to clean and gives me the same error.
    • I've removed the .build directory from within the project folder, forcing it to rebuild the project and that hasn't fixed anything.
    • I've removed the ~/Library/Developer/Xcode/DerivedData/PROJECT_NAME_HERE folder, also did not help.
    • I've tried closing and reopening Xcode, which also did not help.
    • 我检查了 Foundation.h头文件文件,它显示了一个 (10月30日),以及标题文件夹中的每个其他文件,因此实际上没有被修改。

      I checked the Foundation.h header file and it shows a Date Modified of Oct. 30th, along with every other file in the Headers folder, so it hasn't actually been modified.

      我建立的其他项目没有这个错误。

      Other projects that I build do not have this error.

      我在这里失去了。似乎Xcode正在对我说谎。

      I'm at a loss here. Seems like Xcode is lying to me.

      推荐答案

      嗯,我没有找到一个干净的解决方案,解决方案。该项目是在源代码管理下,所以我提交我的更改到存储库,将所有的项目从我的硬盘驱动器,并从存储库中取回,并解决了问题。

      Well, I didn't find a clean solution to this problem, but it was a solution nevertheless. The project was under source control, so I submitted my changes to the repository, nuked the entire project off my hard drive, and fetched it back from the repository and that fixed the problem.

      我的猜测是有一个设置项目或存储在项目旁边的数据,没有提交到存储库,这就是为什么删除和刷新项目从存储库固定的问题。奇怪的是,从项目中删除 DerivedData .build 目录没有解决问题,所以它必须是存储在其他位置的设置。

      My guess is there was somehow a setting in the project or data stored along side the project that is not ever submitted to the repository, which is why deleting and refreshing the project from the repository fixed the issue. What's odd is that deleting DerivedData and the .build directory from within the project didn't fix the issue, so it would have to be a setting stored elsewhere.

      这篇关于Xcode 4.5.2致命错误:预编译头已被修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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