after modifying system headers, please delete the module cache at


5down votefavorite

2

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?

ios xcode


share|improve this question

edited Sep 25 ‘13 at 3:41

Kevin
22.4k62559

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

add a comment

4 Answers

activeoldestvotes


up vote24down voteaccepted

Remove the pcm file

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

then

Clean Project( Cmd+Shift+K)

Problem solved


share|improve this answer

answered Jan 13 at 11:19

trieukhang
44556

 

    

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

add a comment


up vote4down vote

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

cd ~/Library/Developer/Xcode/DerivedData/ModuleCache/
rm -rf ./*

share|improve this answer

edited Apr 17 at 20:05

simonbs
2,72622981

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

add a comment

after modifying system headers, please delete the module cache at

时间: 2024-10-23 15:12:39

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

iOS 真机测试的时候报错 After modifying system headers, please delete the module cache at '/ /Users/smile/Libr

这个是Xcode缓存导致的 fatal error: file ' '/ /Users/smile/Library/Developer/Xcode/DerivedData/ModuleCache/VE5HTVL861UA' was built note: after modifying system headers, please delete the module cache at '/Users/ligang/Library/Developer/Xcode/DerivedData/Modul

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 error C1189: #error:  "Oops: min() and/or max() are defined as preprocessor macros.  Define NOMINMAX macro before including any system headers!" 2.原

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 transactions in a transaction pipeline. A pending tag storage unit may be coupled to a cache controller and configured to store pending tags each indicativ

Node.Js学习01: Module System 以及一些常用Node Module

Node.Js学习就按照这本书的流程来. 在第7章结束与第10章结束时分别自己出一个小项目练练手.Node.Js的入门学习计划是这样. 目录:, QQ:1045642972 欢迎来索书以及讨论Node.Js. Node.Js Demo Node.Js官网提供了一个最基本的Demo Code: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type':

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

xcode5 编译工程,偶然碰到了下面的问题: fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/gapple/Library/Developer/Xcode/DerivedData/ModuleCache/PNBJ8YUNV3UC/Darwin.pcm": module file not found' note: after modifying system headers, pl

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/xxx/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modifying system headers, please delete the

Malformed or corrupted AST file:......module file out of date

Malformed or corrupted AST file: 'Unable to load module "/Users/zhangyu/Library/Developer/Xcode/DerivedData/ModuleCache/11WVWISKX5HB9/Darwin.pcm": module file out of date' After modifying system headers, please delete the module cache at '/Users

malformed or corrupted AST file: 'Unable to load module

这是我们使用不同版本的Xcode造成的问题,当我们使用Xcode6打开项目之后再用Xcode5打开就会报错 fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/xxx/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modifyin

使用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/xxx/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modifying system headers, please delete the