0
//
// 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

I receive this warning by building with prefix.pch file:

Lexical or preprocessor Issue

What could be the reason?

This is a project that uses zbar SDK. Unfortunatly their program is also not working and has exactly the same problem. And actually it does not see any of my frameworks. Have somebody any idea?

1 Answers1

0

Remove the ! after #endif so use:

#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
iTukker
  • 2,083
  • 2
  • 16
  • 16
  • Thanks, but it was not the mistake. I've made it only hear, and actually the problem is here: # import - 'Foundation/Foundation.h' file not found – Roman Kirianov Jun 17 '12 at 17:19