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

prefix.pch ファイルを使用してビルドすると、次の警告が表示されます。

レキシカルまたはプリプロセッサの問題

その理由は何ですか?

これはzbar SDKを使用するプロジェクトです。残念ながら、彼らのプログラムも機能しておらず、まったく同じ問題を抱えています。実際には、私のフレームワークは表示されません。誰かアイデアはありますか?

4

1 に答える 1

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
于 2012-06-17T08:23:45.227 に答える