Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error: file has been modified since the precompiled header

Tags:

xcode

ios

Checked all of the question shown in image but nothing works out. enter image description here

In xcode 5 I m getting this issue

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

What could be the issue??? Any help ld be greatly appreciated.

like image 779
Rajesh Avatar asked Feb 26 '14 07:02

Rajesh


2 Answers

  1. Delete DerivedData at /Library/Developer/Xcode/DerivedData/
  2. Reset your simulator

Quit xcode and then it runs again.

like image 153
ChandreshKanetiya Avatar answered Sep 22 '22 12:09

ChandreshKanetiya


Deep clean (Cmd + Opt + Shft + K), clearing folder DerivedData, clearing simulator, restarting Xcode and mac doesn't work for me.

Problem was fixed only after changing pch-file (adding a whitespace or comment/uncomment some code). File was incorrectly cached on build phase by Xcode. Changing this file fixed problem.

like image 34
KepPM Avatar answered Sep 21 '22 12:09

KepPM