[英]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: 试用:
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.