简体   繁体   English

错误:在iOS项目(swift)中嵌入Unity(Vuforia)时,体系结构arm64的符号未定义

[英]Error: Undefined symbols for architecture arm64 when Embed Unity(Vuforia) in IOS project(swift)

I am trying to embed a Unity project(with Vuforia and map box) in an existing IOS project. 我试图将Unity项目(带有Vuforia和地图框)嵌入到现有的IOS项目中。 I followed steps from : 我遵循以下步骤:

However, at the end, I am getting errors undefined symbols for architecture arm64 , and seems like it has trouble with libVuforiaWrapper.a which is a unity file. 但是,最后,我遇到undefined symbols for architecture arm64错误,并且似乎对libVuforiaWrapper.a它是一个统一文件)有麻烦。

The detailed error is following: 详细错误如下:

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 version: 9.4.1 Xcode版本:9.4.1

Unity version: 2018.1.0f2 Unity版本:2018.1.0f2

other: Vuforia is used in unity project 其他:Vuforia用于统一项目

Trials: 试用:

  1. In build setting, changing the architecture arm64 to armv7 armv7s. 在构建设置中,将体系结构arm64更改为armv7 armv7s。
  2. reimporting libVuforiaWrapper.a 重新导入libVuforiaWrapper.a

I have stuck on this point for one day, is there anyone willing to help? 我在这一点上停留了一天,有没有人愿意提供帮助? Thank you!!!! 谢谢!!!!

I have found the solution for this. 我已经找到解决方案。 You have to add a Vuforia.framework on your project. 您必须在项目上添加Vuforia.framework。

look at this website to get an basic idea to use vuforia.framework 查看此网站以获得使用vuforia.framework的基本思路

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

and for working on your project, you should go website below and follow the steps in section "building in Xcode" 对于项目,您应该访问下面的网站,并按照“在Xcode中构建”部分中的步骤进行操作

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Unity Vuforia Xcode构建错误:“体系结构arm64的未定义符号” - Unity Vuforia Xcode build error: “Undefined symbols for architecture arm64” Swift 编译错误 - 架构 arm64 的未定义符号 - Swift Compile Error - Undefined symbols for architecture arm64 体系结构arm64(iOS)的未定义符号 - Undefined symbols for architecture arm64 (iOS) 架构 arm64 iOS 的未定义符号 - Undefined symbols for architecture arm64 iOS 如何在构建 Unity 项目后修复 Xcode 中的“Undefined symbols for architecture arm64:”错误? - How to fix the “Undefined symbols for architecture arm64:” error in Xcode after building a Unity project? iOS中带有FCM的体系结构arm64的错误未定义符号 - Error Undefined symbols for architecture arm64 with FCM in iOS 架构arm64错误的未定义符号是什么? iOS Xcode - what is this Undefined symbols for architecture arm64 error? ios xcode iOS-体系结构arm7,arm64的未定义符号 - iOS - undefined symbols for architecture arm7, arm64 在测试中迅速发挥作用的“体系结构arm64的未定义符号:” - “Undefined symbols for architecture arm64:” for function in swift in tests Quickblox Flutter Ios 架构 arm64 的未定义符号: - Quickblox Flutter Ios Undefined symbols for architecture arm64:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM