FacePlusPlus / MegviiFacepp-iOS-SDK

An iOS wrapper of MegviiFacepp SDK (the mobile SDK).
Apache License 2.0
50 stars 19 forks source link

Undefined symbols for architecture arm64 #31

Closed finnnif closed 7 years ago

finnnif commented 7 years ago

我在 release 里下载 0.4.7-onlineauth 后 打开 FaceppDemo.xcworkspace 后报若干文件报红 在官网 sdk 中找到相关文件后 编译 MGBaseKit 得到 MGBaseKit.framework 导入到 FaceppDemo 中, 编译报下列错误

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_MGImageData", referenced from:
      objc-class-ref in DetectOneViewController.o
      objc-class-ref in MarkVideoViewController.o
  "_OBJC_CLASS_$_MGLicenseManager", referenced from:
      objc-class-ref in MGFaceLicenseHandle.o
  "_OBJC_CLASS_$_MGFacepp", referenced from:
      objc-class-ref in MGFaceLicenseHandle.o
      objc-class-ref in DetectOneViewController.o
      objc-class-ref in MainViewController.o
      objc-class-ref in MGMarkSetViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

检查过项目中的 Compile Sources 中存在相关 . m 文件 (并尝试移除后重新添加, 未能解决) 建议你们自己从 github 上下载相关文件操作一遍. 请问知道具体是什么问题吗, 或者有什么建议吗? 谢谢@moon5ckq