xcode 6中添加预编译pch文件出现问题解决方法

导入pch 文件,要关联pch:

 

最重要的一步就是,要在pch中添加如下代码:

 

 

#import <Availability.h>

#ifndef __IPHONE_3_0

#warning "This project uses features only available in iOS SDK 3.0 and later."

#endif

 #ifdef __OBJC__

#import <UIKit/UIKit.h>

#import <Foundation/Foundation.h>

#endif

 

posted @ 2015-01-05 18:42  在bug中前行  阅读(226)  评论(0编辑  收藏  举报