xcode接sdk时报错Undefined symbols for architecture arm64:

unity 导出xcode后接环信libHyphenateSDK时build报错Undefined symbols for architecture armv7:
也有Undefined symbols for architecture arm64:

Undefined symbols for architecture armv7:
  "_CGImageDestinationCreateWithURL", referenced from:
      -[EMVideoMessageBody initWithLocalPath:displayName:] in libHyphenateSDK.a(EMVideoMessageBody.o)
  "_CGImageDestinationAddImage", referenced from:
      -[EMVideoMessageBody initWithLocalPath:displayName:] in libHyphenateSDK.a(EMVideoMessageBody.o)
  "_CGImageDestinationFinalize", referenced from:
      -[EMVideoMessageBody initWithLocalPath:displayName:] in libHyphenateSDK.a(EMVideoMessageBody.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
{A28B1E2A-4EEB-9DB0-ADB5-B16C40B93EAF}.png

这个错误以为sdk或者framework不支持armv7或者arm64,我这实际上是缺少framework
这个错误是工程里面没有引用 ImageIO.framework造成的,


image.png

环信的libHyphenateSDK.a库依赖ImageIO.framework,结果报错让人无语

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容