【发布时间】:2014-06-02 08:49:28
【问题描述】:
当我尝试编译我的项目时,我得到了错误。我添加了所有必需的框架 - 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
【问题讨论】:
-
这里是来自项目的框架:MediaPlayer、AudioToolbox、CoreImage、QuartzCore、ImageIO、CoreMedia、AVFoundation、opencv2、Foundation、CoreGraphics、UIKit
-
试试这个,清理 -> 关闭 xcode -> 构建..
-
@Mani 情况没有改变
-
你试过这个
Go to framework search paths. Remove everything from there吗?也试试这个stackoverflow.com/questions/19130744/…。 -
您是否尝试使用 iPod 或 iPhone 进行编译?似乎您使用模拟器中不支持模拟器的库来编译您的应用程序。例如:AVFoundation。试试 NSLog(@"%@", [AVCaptureDevice devices]);在模拟器中,您将看不到任何设备
标签: ios