标签:style blog http strong 文件 os
iOS开发—清除缓存
一、修改了系统的头文件
报错示例:
fatal error: file ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h‘ has been modified since the precompiled header ‘/Users/ligang/Library/Developer/Xcode/DerivedData/ModuleCache/1O5WP9283VGUA/Foundation.pcm‘ was built
note: after modifying system headers, please delete the module cache at ‘/Users/ligang/Library/Developer/Xcode/DerivedData/ModuleCache/1O5WP9283VGUA‘
1 error generated.
解决办法:
(1)前往 ‘/Users/ligang/Library/Developer/Xcode/DerivedData/ModuleCache/1O5WP9283VGUA 这个文件夹,删除其文件夹中的内容,然后运行app,没问题了,注意不是删除 2NEVAP7X943D2 文件夹,而是其中的内容。然后再 clean下项目就可以了(product -> clean)
(2)如果删除缓存文件后还是没有解决的话,那估计很大程度上得重装Xcode了。
示例:
二、当程序出现莫名其妙的问题时,可以进行clean操作
1.简单清理
2.删除缓存文件
标签:style blog http strong 文件 os
原文地址:http://www.cnblogs.com/wendingding/p/3845252.html