fatal error: file '/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h' has been modified since the precompiled header '/Users/To_Mac/Library/Developer/Xcode/DerivedData/ModuleCache/F9TJOZ2O73/UIKit-159N3SVF2LMK2.pcm' was built
note: please rebuild precompiled header '/Users/To_Mac/Library/Developer/Xcode/DerivedData/ModuleCache/F9TJOZ2O73/UIKit-159N3SVF2LMK2.pcm'
此错误是由于我开始在UISearchController.h文件中有写过几个数字,虽然后面把数字去掉了,但是其中的空格行数可能让我改动了,导致报这个错误。
解决方法:1、打开终端 2、cd /Users/Tony_Mac/Library/Developer/Xcode/DerivedData/ModuleCache/BUF9TJOZ2O73 3、rm UIKit-159N3SVF2LMK2.pcm 4、clean 后,重新编译Xcode错误已经没有了。