I don't know how I modified a iOS SDK file, but Xcode say I did. Here is what they reported.

fatal error: file '/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h' has been modified since the precompiled header '/Users/m/Library/Developer/Xcode/DerivedData/ModuleCache/24CDWDK5BTYJE/UIKit.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/m/Library/Developer/Xcode/DerivedData/ModuleCache/24CDWDK5BTYJE'
1 error generated.

I tried to look for this DerivedData but could not. I also went into organizer to delete it and did a clean, even after that, no luck.

How do I restore this UIFontDescriptor.h to its original form?

asked Sep 25 '13 at 3:39
mskw
1,34411124
 
1  
UPdate: I went into the MOduleCache and deleted EVERYTHING, then re-cleaned again, and now it will compile in simulator. –  mskw Sep 25 '13 at 3:40
    
Yeah the modules thing isn't fully ironed out yet - you can disable it in the project settings if it becomes a major issue. –  Richard J. Ross III Sep 25 '13 at 3:43
    
I have wondered about how you would fix this too. But maybe more importantly, why are you allowed to modify header files from the SDK? Didn't use to be able to modify these files in the old days. –  Jim MerkelSep 25 '13 at 3:46
    
got to UIFontDescriptor.h and undo the changes . –  Vinodh Sep 25 '13 at 8:49

4 Answers

Remove the pcm file

rm "/Users/m/Library/Developer/Xcode/DerivedData/ModuleCache/24CDWDK5BTYJE/UIKit.pcm"

then

Clean Project( Cmd+Shift+K)

Problem solved

answered Jan 13 at 11:19
 
    
I went to the following folder [Shift+Cmnd+G] and searched for UIKit.pcm and deleted all of them! /Users/USERNAME/Library/Developer/Xcode/DerivedData/ModuleCache/. Thanks for answer, this works best guys! –  emotality Jul 31 at 2:51
    
Awesome answer. +1 –  TrueLifeCoder Aug 2 at 5:49

I fixed this by deleting the entire contents of the ModuleCache folder:

cd ~/Library/Developer/Xcode/DerivedData/ModuleCache/
rm -rf ./*
answered Jan 13 at 21:16
Jamie Forrest
2,1311338
 
1  
this removed all of my project data from desktop.. everything.. damn –  Divyu Mar 20 at 15:29
1  
You probably didn't cd into the proper directory. Make sure you replace the 'you' above with your Mac OS username. –  Jamie Forrest Mar 20 at 19:27
1  
Your answer is potentially danger. Can you fix it? Like this: cd ~/Library/Developer/Xcode/DerivedData/ModuleCache/ && rm -rf ./* or like this: rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/* –  k06a Apr 17 at 18:36
    
@JamieForrest You are my hero –  kl94 Aug 7 at 21:04

after modifying system headers, please delete the module cache at的更多相关文章

  1. System.IO.Directory.Delete目录删除

    在程序运行的时候,如果直接获取一个目录路径,然后执行删除(包括子目录及文件): System.IO.Directory.Delete(path,true); 或者 System.IO.Director ...

  2. fatal error C1189: #error: "Oops: min() and/or max() are defined as preprocessor macros. Define NOMINMAX macro before including any system headers!"

    1.问题描述 vs2015 使用pg数据库的C++库文件4.0.1版本libpqxx.dll,包含头文件#include "pqxx\pqxx" 出现这个错误: fatal err ...

  3. Multiprocessing system employing pending tags to maintain cache coherence

    A pending tag system and method to maintain data coherence in a processing node during pending trans ...

  4. iOS 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module

    使用不同版本的XCode出现的问题: fatal error: malformed or corrupted AST file: 'Unable to load module "/Users ...

  5. (转)使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module

    使用不同版本的XCode出现的问题: fatal error: malformed or corrupted AST file: 'Unable to load module "/Users ...

  6. fatal error: malformed or corrupted AST file: 'Unable to load module Darwin.pcm 问题解决

    xcode5 编译project.偶然碰到了以下的问题: fatal error: malformed or corrupted AST file: 'Unable to load module &q ...

  7. ios 常见问题解决

    一,libxml/HTMLparser.h file not find 第一种方法: 点击左边项目的根目录,再点击右边的Build Settings,手工输入文字:“Header search pat ...

  8. IOS 项目问题总结

    把自己项目中遇到的问题总结一下,供大家参考,希望大家多多提出意见!! 在Xcode 6.2中遇到Your build settings specify a provisioning profile w ...

  9. ios编译出错:UIButton.h' has been modified since the precompiled header UIKit.pcm' was built

    今天编译遇到个问题:如下 fatal error: file '/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulat ...

随机推荐

  1. 学生党如何拿到阿里技术offer: 《2016阿里巴巴校招内推offer之Java研发工程师(成功)》

    摘要: 这篇文章字字珠玑,这位面试的学长并非计算机相关专业,但是其技术功底足以使很多计算机专业的学生汗颜,这篇文章值得我们仔细品读,其逻辑条理清晰,问题把握透彻,语言表达精炼,为我们提供了宝贵的学习经 ...

  2. 负载均衡的时候如何实现相同的session被分配到同一个服务器

    http://www.zhihu.com/question/19651970 session共享那个问题时,有人说:其实从负载均衡的层面来看,大多数硬件/软件的负载均衡方案,都支持session状态保 ...

  3. 如何实现session共享

    http://www.cnblogs.com/xiehuiqi220/p/3592300.html 首先我们应该明白,为什么要实现共享,如果你的网站是存放在一个机器上,那么是不存在这个问题的,因为会话 ...

  4. Linux tar命令高级用法——备份数据

    Linux tar命令高级用法——备份数据 2015-12-31 Linux学习 Linux上有功能强大的tar命令,tar最初是为了制作磁带备份(tape archive)而设计的,它的作用是把文件 ...

  5. zabbix 报警方式之 微信公众号报警(5)

    一.条件 首先你得有一个微信公众号,并且是可以有发送消息的接口.然后你得有个脚本去调用微信的api. 这里感谢一下微信.使我们运维人员的报警方式多了一种... (同事们不要怪我哈.) 之后可以参考下z ...

  6. 根据需要通过代码的方式加载js文件

    var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); ...

  7. Tkinter Fonts(字体)

    Python GUI - Tkinter Fonts:作为一个tuple的第一个元素是字体家族,一个点的大小,可选择一个字符串,包含一个或更多的粗体,斜体,下划线的样式修饰符,加粗.   最多可能有三 ...

  8. halcon采集一幅图像

    **顺序也很重要,必须现有窗口,才能设置属性 dev_close_window()dev_open_window (0, 0, 1400, 1200, 'black', WindowHandle)de ...

  9. 教你看懂Code128条形码

    首     页 条码控件 条码技术 条码新闻 合作伙伴 联系我们 常见问题 电话:010-84827961 当前位置:条形码控件网 > 条形码控件技术文章 > >正文   教你看懂C ...

  10. debian:jessie 安转percona mysql

    dpkg -r percona-server-server-5.6 dpkg -r percona-server-client-5.6 dpkg -r libperconaserverclient18 ...