加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

iphone – 与_CGImageSourceCreateWithData相关的链接错误

发布时间:2020-12-14 18:57:40 所属栏目:百科 来源:网络整理
导读:编译时出错. Undefined symbols for architecture armv6:"_CGImageSourceCreateWithData",referenced from: ___-[AVCamCaptureManager captureStillImage]_block_invoke_1 in AVCamCaptureManager.o"_CGImageSourceCopyPropertiesAtIndex",referenced from:
编译时出错.

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分钟,我想念的是什么?

非常感谢,
-码

解决方法

对于CGImageSourceCreateWithData

添加ImageIO.framework,

但是根据#import指令的外观我会说你还需要至少添加:AVFoundation和MobileCoreServices

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读