【问题标题】:Error: Undefined symbols for architecture arm64 when Embed Unity(Vuforia) in IOS project(swift)错误:在 IOS 项目(swift)中嵌入 Unity(Vuforia)时架构 arm64 的未定义符号
【发布时间】:2018-07-25 16:20:01
【问题描述】:

我正在尝试在现有的 IOS 项目中嵌入一个 Unity 项目(带有 Vuforia 和地图框)。我按照以下步骤操作:

但是,最后,我收到了错误undefined symbols for architecture arm64,并且似乎与统一文件的libVuforiaWrapper.a 有问题。

详细错误如下:

ld: warning: directory not found for option '-L/Users/ericquan/Desktop/UnityAppDemo/AppDemo/../UnityIOS/Libraries/Plugins/iOS'


Undefined symbols for architecture arm64:

"_inflateInit2_", referenced from:
      -[NSData(GZIP) mme_gunzippedData] in libMapboxMobileEventsStatic.a(NSData+MMEGZIP.o)

"Vuforia::MetalRenderData::MetalRenderData()", referenced from:
      __GLOBAL__sub_I_PlatformiOS.mm in libVuforiaWrapper.a(PlatformiOS.o)


 (maybe you meant: _unity_z_inflateInit2_, _il2cpp_z_inflateInit2_ )

Xcode 版本:9.4.1

Unity版本:2018.1.0f2

其他:Vuforia 用于 Unity 项目

试验:

  1. 在构建设置中,将架构 arm64 更改为 armv7 armv7s。
  2. 重新导入 libVuforiaWrapper.a

我在这一点上坚持了一天,有人愿意帮忙吗?谢谢!!!!

【问题讨论】:

  • 你解决了这个问题吗?任何解决方案请发布。

标签: ios swift unity3d


【解决方案1】:

我已经找到了解决方案。您必须在项目中添加 Vuforia.framework。

查看这个网站以获得使用 vuforia.framework 的基本概念

https://library.vuforia.com/articles/Solution/Getting-Started-with-Vuforia-for-iOS-Development.html

对于您的项目,您应该访问下面的网站并按照“在 Xcode 中构建”部分中的步骤进行操作

https://library.vuforia.com/articles/Solution/how-migrate-vuforia-7_2.html

【讨论】:

  • 您能否详细说明您为使其正常工作所做的工作?我尝试将 vuforia.framework 添加到我的 xcode 项目中,但仍然无法使其正常工作
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-11-18
  • 2014-01-22
  • 2016-09-08
相关资源
最近更新 更多