0
“为架构的x86-x64的未定义符号”我用zxing
LIB我OS X
应用。我已将zxing-objc
添加到我的项目中,并将zxing demo(zxing-root/objc/examples/demo
)中的代码复制粘贴到单独的ViewController
类。当尝试编译项目时,我得到下面的连接错误:斑马线错误
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_QTCaptureDevice", referenced from:
objc-class-ref in ScanViewController.o
"_OBJC_CLASS_$_ZXCapture", referenced from:
objc-class-ref in ScanViewController.o
"_QTMediaTypeMuxed", referenced from:
-[ScanViewController performVideoSourceScan] in ScanViewController.o
"_QTMediaTypeVideo", referenced from:
-[ScanViewController performVideoSourceScan] in ScanViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我仔细检查所有代码和我相比,项目属性(包括C++编译器选项)演示项目属性,一切都做对。