问题:Undefined symbols for architecture armv7
2013-10-18 15:21
330 查看
Undefined symbols for architecture armv7: "_AVMediaTypeVideo", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVCaptureSessionRuntimeErrorNotification", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVCaptureSessionDidStopRunningNotification", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVCaptureSessionInterruptionEndedNotification", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVCaptureSessionDidStartRunningNotification", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_OBJC_CLASS_$_AVCaptureSession", referenced from: objc-class-ref in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVCaptureSessionWasInterruptedNotification", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from: objc-class-ref in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVLayerVideoGravityResizeAspectFill", referenced from: -[ZBarReaderViewImpl initSubviews] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_OBJC_CLASS_$_AVCaptureVideoPreviewLayer", referenced from: objc-class-ref in libzbar.a(ZBarReaderViewImpl_Capture.o) "_AVCaptureSessionPreset640x480", referenced from: -[ZBarReaderViewImpl _initWithImageScanner:] in libzbar.a(ZBarReaderViewImpl_Capture.o) "_OBJC_CLASS_$_AVCaptureDevice", referenced from: objc-class-ref in libzbar.a(ZBarReaderViewImpl_Capture.o) "_OBJC_CLASS_$_AVCaptureVideoDataOutput", referenced from: objc-class-ref in libzbar.a(ZBarCaptureReader.o) "_AVCaptureSessionErrorKey", referenced from: -[ZBarReaderViewImpl onVideoError:] in libzbar.a(ZBarReaderViewImpl_Capture.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案:
找不到某个类的framework,查看你是不是引用了没有加到building Phase里的framework的类。此处缺少了AVFoundation.framework,添加即可。
添加动态库步骤:
targets——>build phases——>link binary with libraries——>选择要添加的库
相关文章推荐
- 烦人的问题:Client does not support authentication protocol requested by server; consider upgrading MySQL client
- Cvs中的"no such repository"问题调试
- 函数指针问题
- Myeclipse5+tomcat5无法编译jsp问题的解决
- 一个php版本引发的问题
- IE不停弹出窗口的问题
- wince|ppc|wm5检测SD卡插拔问题收集
- 高并发高负载网站的系统架构注意的问题
- TFS系列----安装过程文件丢失的问题根源
- VC字符串输出对齐问题(转)
- C,C++经典问题及面试笔试题
- 计算机SID相同会有什么问题|克隆相同sid对活动目录的影响
- (转载)PCI串并卡引起的问题及解决办法
- 解决linux没有在第一磁盘的引导扇区的问题
- 在VC++6.0下写STL程序编译报"fatal error C1063"问题
- VS2003/VS2005+ASP.NET+IE8.0不能调试问题
- delphi 中CreateOleObject函数产生的对象的释放问题
- 使用CSS Expression解决某些浏览器兼容问题
- 克隆windows系统SID重复的问题
- oracle使用中遇到的问题备忘