解决 xx.h has been modified since the precompiled header 系统头文件被修改

fatal error: file ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h‘ has been modified since the precompiled header ‘/Users/kolnick/Library/Developer/Xcode/DerivedData/OCPLUS-deymfudtmdukfobfxwioeksuwgba/Build/Intermediates/PrecompiledHeaders/OCPLUS-Prefix-eywbgfpbrqealjbqvtcurkuxvctc/OCPLUS-Prefix.pch.pch‘ was built

系统头文件被修改过了来到/Users/kolnick/Library/Developer/Xcode/DerivedData/

1.打开finder 进入系统头文件 
2.将ModuleCache 删除 再clean 下项目 重新编译

解决 xx.h has been modified since the precompiled header 系统头文件被修改

时间: 2024-08-29 13:38:41

解决 xx.h has been modified since the precompiled header 系统头文件被修改的相关文章

如何解决…has been modified since the precompiled header… was built的问题

如何解决-has been modified since the precompiled header- was built 的问题 xcode5.1在程序中报错: File '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/UIKit.framework/Hea

iOS 协同开发出fatal error: file ‘XX-Prefix.pch’ has been modified since the precompiled header was built

在协同开发的时候,刚刚从svn下载到本地的代码,出现“fatal error: file 'XX-Prefix.pch' has been modified since the precompiled header was built”的问题,这个其实不是什么问题,解决方案如下: 1.找到  XX-Prefix.pch 文件  注释掉下面的代码: #ifdef __OBJC__ #import <UIKit/UIKit.h> #import <CoreData/CoreData.h>

has been modified since the precompiled header

Clean工程 按住option键,再次Clean(Clean Build Folder...) 进入Window -> Organizer,在上面的Tab中选择Project,在左侧选中当前的工程,在右侧把Derived Data删除 报has been modified since the precompiled header错误的时候会显示很长的错误信息,其中有个包含DerivedData目录的路径,把路径指向的文件删掉 关闭Xcode,直接把 /Library/Developer/Xco

解决点击关闭按钮,应用程序退出时,系统爆出“集合已修改,可能无法执行枚举操作”异常的相关思路

这两天在优化升级公司的一个业务系统时,更改了一下窗体关闭事件中的一句代码,由system.Enviromen.Exit(0)改为了Application.Exit();但是这时候问题就出现了,当点击系统右上角关闭按钮的时候,会爆出“集合已修改,可能无法执行枚举操作”的异常.如下图所示: 这是什么原因造成的呢?问了一下度娘,出现“集合已修改,可能无法执行枚举操作”这种异常大部分都是因为误用foreach语句引起的,foreach是取只读的,在取的时候数据不能变(包括修改,删除,添加等).要避免这个

win8系统 host文件无法修改解决之道

host文件,路径为:C:\windows\system32\drivers\etc\hosts 方法/步骤: 方法1:用notepad++打开host文件,修改和保存 方法2:(1)首先用管理管权限打开DOS程序.win8下同时按住winkey+x键,然后点中菜单中的“命令提示符(管理员)”,打开DOS程序. (2)在打开的DOS窗口中敲入“notepad”命令回车即可以管理员权限打开记事本程序,此时打开的记事本就是以管理员身份打开的.即原来host文件当中的内容复制到打开的记事本中来进行修改

删除moduleCache下文件解决预编译头文件

之前有在代码全部正确的情况下,遇到过下面的编译错误: fatal error: file '.....h' has been modified since the precompiled header '.....' was built. note: please rebuld precompiled header '....'. 解决方法是删除文件夹下/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache下的所有文件,然后

C++预编译头文件(#include &quot;stdafx.h&quot;)

来源:http://blog.sina.com.cn/s/blog_4ac766c00100qsbd.html http://blog.csdn.net/txh0001/article/details/7031058 作为一个C++菜鸟,在预编译头文件(#include "stdafx.h")上纠结了很久,今天打算彻底弄明白它. 1.预编译头文件的概念 所谓的预编译头文件,其实我们很熟悉的,这里的头文件(Microsoft Visual C++中)一般的说就是我们常见的stdafx.h

两种解决头文件被重复包含方法的联系与区别

在制作C/C++项目的过程中,应该会遇到关于头文件被重复包含的问题,几乎每一个C/C++程序员都应该知道如何来解决这一问题.通常来说,我们通常可以用两种方式来解决这一问题. 第一种 ---- 利用以下形式: #ifndef  __XX_H__                                                                              #ifndef   XX_H #define __XX_H__                    

C ++头文件的十大错误,如何解决这些问题

Top 10 C++ header file mistakes and how to fix them C++ header files is a rather mundane topic by most standards. Talking about header files is not as interesting as discussing complex search algorithms or debating design patterns . It’s not an acade