开发者社区> 问答> 正文

未定义的符号:将Unity+Vuforia嵌入Native SWIFT项目时的_$_PHImageM

我目前正在尝试将一个Unitu+Vuforia输出项目嵌入到当前的本地快速iOS项目中。我跟着这个文章很好,但是在最后的构建部分,这些错误会弹出:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_PHImageManager", referenced from:
      objc-class-ref in NativeGallery.o
  "_OBJC_CLASS_$_PHImageRequestOptions", referenced from:
      objc-class-ref in NativeGallery.o
  "_OBJC_CLASS_$_PHAssetCollection", referenced from:
      objc-class-ref in NativeGallery.o
  "_OBJC_CLASS_$_PHFetchOptions", referenced from:
      objc-class-ref in NativeGallery.o
  "_OBJC_CLASS_$_PHAssetCollectionChangeRequest", referenced from:
      objc-class-ref in NativeGallery.o
  "_kUTTypeMovie", referenced from:
      +[UNativeGallery pickMedia:savePath:] in NativeGallery.o
  "_OBJC_CLASS_$_PHAssetChangeRequest", referenced from:
      objc-class-ref in NativeGallery.o
  "_OBJC_CLASS_$_PHPhotoLibrary", referenced from:
      objc-class-ref in NativeGallery.o
  "_OBJC_CLASS_$_PHAsset", referenced from:
      objc-class-ref in NativeGallery.o
  "_kUTTypeImage", referenced from:
      +[UNativeGallery pickMedia:savePath:] in NativeGallery.o
      +[UNativeGallery imagePickerController:didFinishPickingMediaWithInfo:] in NativeGallery.o
  "_kUTTypeVideo", referenced from:
      +[UNativeGallery pickMedia:savePath:] in NativeGallery.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经检查了所提供的链接,并试图自己修复它(尝试过清理、放弃Xcode、重新链接编译源以及读取/构建统一并不有效)。没有结果。有人知道怎么修吗?统一版本:2018.4.12f1与统一中心。Xcode版本:11.3(11C29)。

P.S:如果有人有一个很好的教程/示例,说明如何使用Vuforia SDK进行本地IOS Xcode会很好,因为我不介意将项目更改为完全本机。

展开
收起
游客5akardh5cojhg 2019-12-24 12:48:56 1695 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关课程

更多

相关电子书

更多
OpenStack Swift 海量小文件优化之路 立即下载
From Java/Android to Swift iOS 立即下载
Swift在Airbnb的应用实践 立即下载