今天使用Xcode编写程序时发现出现这个问题
file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h' has been modified since the precompiled header '/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache/3CXIBE9NKXVNP/UIKit.pcm' was built
上网查询了几个方法,一个是再menu->Prounduct->clean(不记得是谁了)
找到***-Prefix.pch文件,把中间的
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
注释掉在运行。(http://blog.youkuaiyun.com/rbyyyblog/article/details/8198270)最终使用的是清空缓存,
把那个DerivedData删除就好了