将 unity3d 与 vuforia 集成到 ios 应用程序时出现 'Undefined symbols for architecture armv7' 错误

get 'Undefined symbols for architecture armv7' error when integrate unity3d with vuforia into ios app

我把所有的步骤都参考这个github repo。虽然我可以自己解决一些问题和错误,但我最终得到的错误让我无能为力。如果有人有将 unity3D 与 vuforia 集成到 ios swift 应用程序的经验?

我会列出我遇到的错误

解决方案:在 UnityBridge.h

中导入 <Foundation/Foundation.h><UIKit/UIKit.h>

解决方案:将$(UNITY_IOS_EXPORT_PATH)/Libraries/Plugins/iOS添加到Library Search Paths

我终于得到了错误

Undefined symbols for architecture armv7:
  "il2cpp::icalls::mscorlib::System::Char::GetDataTablePointers(unsigned char const**, unsigned char const**, double const**, unsigned short const**, unsigned short const**, unsigned short const**, unsigned short const**)", referenced from:
      _Char_GetDataTablePointers_m2324968695 in Bulk_mscorlib_1.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道那个错误,请帮助

reference issue

unity3d论坛也有同样的问题,找到solution

c++ Language Dialect Option : Compiler Default -> C++ 11

完美解决了我在unity3d 5.4.0f3中的问题

顺便说一句,这个问题似乎是由统一版本引起的,而不是 vuforia