我在编译时遇到错误。
Undefined symbols for architecture armv6:
"_CGImageSourceCreateWithData", referenced from:
___-[AVCamCaptureManager captureStillImage]_block_invoke_1 in AVCamCaptureManager.o
"_CGImageSourceCopyPropertiesAtIndex", referenced from:
___-[AVCamCaptureManager captureStillImage]_block_invoke_1 in AVCamCaptureManager.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
它看起来像一个缺少的库,但我包括我认为我需要的那些,如
CoreGraphics中, QuartzCore Foundation.framework
我还在标题中添加了
#import <MobileCoreServices/UTCoreTypes.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import <ImageIO/CGImageProperties.h>
#import <ImageIO/ImageIO.h>
#import <CoreFoundation/CoreFoundation.h>
#import <QuartzCore/QuartzCore.h>
#import <AVFoundation/AVFoundation.h>
我一直在追尾我40分钟,我想念的是什么?
非常感谢, -code
答案 0 :(得分:18)
用于CGImageSourceCreateWithData
添加ImageIO.framework,
但是根据#import指令的外观我会说你还需要至少添加: AVFoundation和MobileCoreServices