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. 【nose入门】环境搭建

    http://blog.sina.com.cn/s/blog_65a8ab5d0101fihb.html 主要分为四个模块 一 环境搭建 二 demo测试 三 参数说明 四 注意事项 一  环境搭建 ...

  2. Python 小结

    1. Python pass是空语句,是为了保持程序结构的完整性. pass 不做任何事情,一般用做占位语句. 2.删除一个list里面的重复元素 方法一:是利用map的fromkeys来自动过滤重复 ...

  3. Spring高级话题-@Enable***注解的工作原理

    出自:http://blog.csdn.net/qq_26525215 @EnableAspectJAutoProxy @EnableAspectJAutoProxy注解 激活Aspect自动代理 & ...

  4. Hibernate面试问题集锦: 概述

    ImportNew注: 本文是ImportNew编译整理的Java面试题系列文章之一.你可以从这里查看全部的Java面试系列. Q.怎么配置Hibernate? A.Configuration类使用配 ...

  5. 导入本体到Jena TDB数据库

    本体的存储方法或称本体持久化,大致分为基于内存的方式.基于文件的方式.基于数据库的方式和专门的管理工具方式4种(傅柱等, 2013).其中,基于数据库的方式又有基于关系数据库.基于面向对象数据库.基于 ...

  6. select sum也会返回null值

    SELECT  SUM(detail.VAL)  FROM   AI_SDP_ORDER_MONTH_DETAIL_201706    detail 如果所有的VAL都是null的话,或者根本就不存在 ...

  7. No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer解决方法

    org.codehaus.jackson.map.JsonMappingException: No serializer found for class org.hibernate.proxy.poj ...

  8. javascript 模拟选择下拉框的某一个option元素的效果

    需要在单元测试模拟它,百度谷歌了好久都没有.后来认真想想,还是找到办法了.因为我们手动交互某一行为,首先是让它的某些属性发生变化,其次是让它触发某事件.想明白这一点就简单了.让属性发生变化,当然是改动 ...

  9. shell编程——流控制case和select

    在shell编程里有时候需要出现交换界面,让使用者来选择要执行的功能,如下面所示,这时候就需要用到case和select进行配合 请选择功能: 1) 退出 2) 系统升级 3) 防火墙配置 4) to ...

  10. 将DataTable中的数据导出成Excel

    public bool ExportFile(System.Data.DataTable dt){    SaveFileDialog sfd = new SaveFileDialog();    s ...