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.




解决方案:

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,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。