陈斌彬的技术博客

Stay foolish,stay hungry

iOS 奇葩有关问题 Prefix.pch 引导的头文件全部失效

<!--More-->
#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif

//判断是否为iPhone5
#define iPhone5 ([UIScreen mainScreen].bounds.size.height == 568)
#define isIos7Later [[UIDevice currentDevice].systemVersion doubleValue]

#import "UIImage+Image.h"
#import "NSString+File.h"
#import "UIButton+Bg.h"
#import "UITextField+TextField.h"
#import "UIBarButtonItem+Create.h"
#import "MBProgressHUD+Show.h"
#import "AFNetworking.h"
#import "UIImageView+WebCache.h"
#import "Common.h"
#import "Wzscfg.h"
#import "NSURLRequest+Url.h"
#import "NSURL+Url.h"

最后发现先把上面的头文件全部删掉 让其报错, 然后复原, 编译ok 只是奇葩的问题!!!