当我尝试编译我的项目时,我收到错误。我添加了所有必需的框架 - AVFoundation,opencv和许多其他框架,但它对我没有帮助。这个错误有几行:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AVCaptureDevice", referenced from:
objc-class-ref in MACaptureSession.o
"_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:
objc-class-ref in MACaptureSession.o
"_OBJC_CLASS_$_AVCaptureSession", referenced from:
objc-class-ref in MACaptureSession.o
"_OBJC_CLASS_$_AVCaptureStillImageOutput", referenced from:
objc-class-ref in MACaptureSession.o
"_OBJC_CLASS_$_AVCaptureVideoPreviewLayer", referenced from:
objc-class-ref in MACaptureSession.o
"_OBJC_CLASS_$_CABasicAnimation", referenced from:
objc-class-ref in MAImagePickerFinalViewController.o
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in MAImagePickerControllerAdjustViewController.o
objc-class-ref in MAImagePickerController.o
"_OBJC_CLASS_$_MPVolumeView", referenced from:
objc-class-ref in MAImagePickerController.o
"_kCATransition", referenced from:
-[MAImagePickerControllerAdjustViewController confirmedImage] in MAImagePickerControllerAdjustViewController.o
答案 0 :(得分:1)
添加
<{1}}和CoreMedia.framework
到您的项目。
得到。
项目 - &gt;目标 - &gt;构建阶段 - &gt;链接二进制文件库 - &gt; &#34; +&#34; - &GT;选择你的框架
答案 1 :(得分:1)
检查一下 MACaptureSession MAImagePickerFinalViewController MAImagePickerControllerAdjustViewController MAImagePickerController.m 已添加到目标并检入相应的m文件,实现名称是正确的。
答案 2 :(得分:0)
正如Mani所建议的,添加必需的框架。如果您已添加这些框架但仍然收到错误,请在项目的构建设置下将Build Active Architecture Only
设置为NO
。