Communication error related to _CGImageSourceCreateWithData

I get a compilation error message.

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 

Looks like a missing library, but I included the ones I need, like

CoreGraphics, QuartzCore Foundation.framework

I also added the headlines

 #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> 

I chase my tail in 40 minutes, what will I miss guys?

Thanks a lot, code

+4
source share
1 answer

for CGImageSourceCreateWithData p>

Add ImageIO.framework,

but with the views of your #import directives, I would say that you also need to add at least: AVFoundation and MobileCoreServices

+18
source

Source: https://habr.com/ru/post/1384069/


All Articles