使用prefix.pch文件构建时发出警告

时间:2012-06-16 23:30:00

标签: iphone zbar-sdk

//
// Prefix header for all source files of the 'Bar_scan' target in the 'Bar_scan' project
//

#ifdef __OBJC__
# import <Foundation/Foundation.h>
# import <CoreFoundation/CoreFoundation.h>
# import <CoreGraphics/CoreGraphics.h>
# import <UIKit/UIKit.h>
# import <QuartzCore/QuartzCore.h>
# import <AVFoundation/AVFoundation.h>
# import <CoreMedia/CoreMedia.h>
# import <CoreVideo/CoreVideo.h>
# import "ZBarSDK.h"
#endif

我通过使用prefix.pch文件构建warning来收到此信息:

  

词法或预处理器问题

可能是什么原因?

这是一个使用zbar SDK的项目。不幸的是,他们的程序也不起作用,并且具有完全相同的问题。 实际上它没有看到我的任何框架。 有人有什么想法吗?

1 个答案:

答案 0 :(得分:0)

删除!在#endif之后使用:

#ifdef __OBJC__
# import <Foundation/Foundation.h>
# import <CoreFoundation/CoreFoundation.h>
# import <CoreGraphics/CoreGraphics.h>
# import <UIKit/UIKit.h>
# import <QuartzCore/QuartzCore.h>
# import <AVFoundation/AVFoundation.h>
# import <CoreMedia/CoreMedia.h>
# import <CoreVideo/CoreVideo.h>
# import "ZBarSDK.h"
#endif
相关问题