原文摘自:http://blog.csdn.net/zoutian007/article/details/7472098
關於IOS的視頻錄製
昨天寫了一段程式關於視頻錄製的,老是庫找不到,提示錯誤。
首先要加的是AVFoundtion.framework.
接著提示
"_CVPixelBufferGetPixelFormatType", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferUnlockBaseAddress", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferGetHeight", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferGetDataSize", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_kCVPixelBufferHeightKey", referenced from:
-[AVCallController startVideoCapture] in AVCallController.o
"_CVPixelBufferGetBaseAddress", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferLockBaseAddress", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_kCVPixelBufferWidthKey", referenced from:
-[AVCallController startVideoCapture] in AVCallController.o
"_CVPixelBufferGetWidth", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
把coreVideo.FrameWork加進去!
接下來又是
Undefined symbols for architecture armv7:
"_CMSampleBufferGetImageBuffer", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CMTimeMake", referenced from:
-[AVCallController startVideoCapture] in AVCallController.o
這時候把CoreMedia.FrameWork 加進去