UIButton.h' has been modified since the precompiled header
2014-12-02 10:24
423 查看
不知道什么原因,今天工程报UIButton.h' has been modified since the precompiled header,错误
参考了一片博客没最终解决问题,两篇博客整合下,问题解决
1.http://blog.csdn.net/zhangao0086/article/details/39644527
有时候不小心就报了这个错误,在以下步骤中,只有没解决问题的情况下,才继续往下操作:
Clean工程
按住option键,再次Clean(Clean Build Folder...)
进入Window -> Organizer,在上面的Tab中选择Project,在左侧选中当前的工程,在右侧把Derived Data删除
报has been modified since the precompiled header错误的时候会显示很长的错误信息,其中有个包含DerivedData目录的路径,把路径指向的文件删掉
关闭Xcode,直接把 /Library/Developer/Xcode/ 目录删掉,然后启动Xcode自动重建此目录。如果你配置了自定义的快捷键,建议先把 /Users/你的用户名/Library/Developer/Xcode/UserData/KeyBindings 目录下你自定义的KeyBindings文件备份,之后再复制过来
2.http://www.educity.cn/wenda/101246.html
找到***-Prefix.pch文件,把中间的
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
注释掉。运行程序。Bulid success之后。程序停止运行。解开注释。再运行一次就好了。
我的解决方案是先注释代码,然后点击 clean工程,接着按住option clean工程,最终问题解决。
参考了一片博客没最终解决问题,两篇博客整合下,问题解决
1.http://blog.csdn.net/zhangao0086/article/details/39644527
有时候不小心就报了这个错误,在以下步骤中,只有没解决问题的情况下,才继续往下操作:
Clean工程
按住option键,再次Clean(Clean Build Folder...)
进入Window -> Organizer,在上面的Tab中选择Project,在左侧选中当前的工程,在右侧把Derived Data删除
报has been modified since the precompiled header错误的时候会显示很长的错误信息,其中有个包含DerivedData目录的路径,把路径指向的文件删掉
关闭Xcode,直接把 /Library/Developer/Xcode/ 目录删掉,然后启动Xcode自动重建此目录。如果你配置了自定义的快捷键,建议先把 /Users/你的用户名/Library/Developer/Xcode/UserData/KeyBindings 目录下你自定义的KeyBindings文件备份,之后再复制过来
2.http://www.educity.cn/wenda/101246.html
找到***-Prefix.pch文件,把中间的
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
注释掉。运行程序。Bulid success之后。程序停止运行。解开注释。再运行一次就好了。
我的解决方案是先注释代码,然后点击 clean工程,接着按住option clean工程,最终问题解决。
相关文章推荐
- iOS 协同开发出fatal error: file 'XX-Prefix.pch' has been modified since the precompiled header was built
- Xcode 6 *.h' has been modified since the precompiled header
- File '/Applications/Xcode has been modified since the precompiled header was built
- iOS 协同开发出fatal error: file 'XX-Prefix.pch' has been modified since the precompiled header was built
- ios编译出错:UIButton.h' has been modified since the precompiled header UIKit.pcm' was built
- iOS开发xcode报错:"xxxxxx"has been modified since the precompiled header was built
- has been modified since the precompiled header was built IOS开发
- 【转】 IOS开发xcode报错之has been modified since the precompiled header was built
- IOS开发xcode报错之has been modified since the precompiled header was built
- IOS开发xcode报错之has been modified since the precompiled header was built
- 如何解决…has been modified since the precompiled header… was built的问题
- XCode报错 has been modified since the precompiled header was built
- IOS开发xcode报错之has been modified since the precompiled header was built
- 【Xcode】file 'XXX.pch'has been modified since the precompiled header was built
- iOS开发xcode报错:"xxxxxx"has been modified since the precompiled header was built
- iOS file 'XX-Prefix.pch' has been modified since the precompiled header was built
- xcode报错 has been modified since the precompiled header was built
- 解决 xx.h has been modified since the precompiled header 系统头文件被修改
- 关于***-Prefix.pch has been modified since the precompiled header was built的错误
- IOS开发 xcode报错之has been modified since the precompiled header was built