Accidentally modified an iOS SDK header file, now I cannot compile in simulator

xcode提示下面错误:

 fatal error: file ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h‘ has been modified since the precompiled header ‘/Users/robin/Library/Developer/Xcode/DerivedData/ModuleCache/1X6VUGTMHFBPB/UIKit.pcm‘ was built

note: after modifying system headers, please delete the module cache at ‘/Users/robin/Library/Developer/Xcode/DerivedData/ModuleCache/1X6VUGTMHFBPB‘

1 error generated.


Accidentally modified an iOS SDK header file, now I cannot compile in simulator


解决方案:

Remove the pcm file 

rm "/Users/robin/Library/Developer/Xcode/DerivedData/ModuleCache/1X6VUGTMHFBPB/UIKit.pcm" 

then 

Clean Project( Cmd+Shift+K)

Accidentally modified an iOS SDK header file, now I cannot compile in simulator,布布扣,bubuko.com

Accidentally modified an iOS SDK header file, now I cannot compile in simulator

上一篇:Java反射——内省(Introspector)以及BeanUtils内省框架


下一篇:安卓listview滚动时背景变黑的解决方法