关于NSBundle.h的致命错误

时间:2014-10-16 14:18:20

标签: ios ios8

我得到的致命错误如下:

fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h' has been modified since the precompiled header '/Users/***/Library/Developer/Xcode/DerivedData/***-cmhnsmgdfdaulbchdzoottkobtky/Build/Intermediates/PrecompiledHeaders/Pods-Reachability-prefix-aqankredstszyhgoombnyvjatenf/Pods-Reachability-prefix.pch.pch' was built

我清理了派生数据但没有任何改变。有什么问题?

1 个答案:

答案 0 :(得分:0)

是的,我偶尔会发生这种情况。简单地清理构建文件夹(command-option-shift-K)并不总是有效。在这种情况下,问题是它是一个CocoaPod pch文件,它似乎实际上存在于〜/ Developer / Xcode / DerivedData / ModuleCache中。最简单的事情就是在〜/ Developer / Xcode / DerivedData和Build之后简单地核对所有东西。