【发布时间】:2012-09-02 15:04:10
【问题描述】:
我需要将#import "ZBarSDK.h" 写入#ifdef OBJ 部分,因为如果在其他地方有导入,Minizip 将不起作用!
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "ZBarSDK.h"
#endif
然后我得到一个错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in ViewController.o
"_ZBarReaderControllerResults", referenced from:
-[ViewController imagePickerController:didFinishPickingMediaWithInfo:] in ViewController.o
"_OBJC_CLASS_$_CIImage", referenced from:
objc-class-ref in ImageViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有人可以帮忙吗? 我的0
【问题讨论】:
标签: ios zip conditional-compilation zbar-sdk