且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Xcode 4.5.2致命错误:预编译头已被修改

更新时间:2023-09-18 10:04:40

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

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.