我正在尝试实现 CanvasCamera 插件,我遵循了该过程,但是当我尝试在模拟器中运行该项目时,我标记了 8 个错误:
架构 i386 的未定义符号:“_CVPixelBufferGetBaseAddress”,引用自:-[CanvasCamera captureOutput:didOutputSampleBuffer:fromConnection:] in CanvasCamera.o “_CVPixelBufferGetBytesPerRow”,引用自:-[CanvasCamera captureOutput:didOutputSampleBuffer:fromConnection:] in CanvasCamera.o “_CVPixelBufferGetHeight ",引用自:-[CanvasCamera captureOutput:didOutputSampleBuffer:fromConnection:] in CanvasCamera.o "_CVPixelBufferGetWidth",引用自:-[CanvasCamera captureOutput:didOutputSampleBuffer:fromConnection:] in CanvasCamera.o "_CVPixelBufferLockBaseAddress",引用自:-[CanvasCamera CanvasCamera.o "_CVPixelBufferUnlockBaseAddress" 中的 captureOutput:didOutputSampleBuffer:fromConnection:],引用自:-[CanvasCamera captureOutput:didOutputSampleBuffer:fromConnection:] in CanvasCamera.o "_kCVPixelBufferPixelFormatTypeKey",引用自: -[CanvasCamera startCapture:withDict:] in CanvasCamera.o ld:未找到架构 i386 clang 的符号:错误:链接器命令退出代码 1 失败(使用 -v 查看调用)
你能帮我解决这个问题吗?
我在 Mac mini 英特尔 i5 处理器 Os X 10.8.2 Xcode 4.5 中进行测试