美文网首页
xcode接sdk时报错Undefined symbols fo

xcode接sdk时报错Undefined symbols fo

作者: codingriver | 来源:发表于2017-12-23 13:41 被阅读20次

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,结果报错让人无语

相关文章

网友评论

      本文标题:xcode接sdk时报错Undefined symbols fo

      本文链接:https://www.haomeiwen.com/subject/tbfqgxtx.html