将unity3d与vuforia集成到ios应用程序时,获取“架构armv7的未定义符号”错误

时间:2016-09-13 09:24:41

标签: ios swift unity3d vuforia

我做了所有步骤参考github repo。虽然我可以自己解决一些问题和错误,但我终于得到错误让我无助。如果有人有经验将unity3D与vuforia集成到ios swift应用程序中?

我将列出我得到的错误

  • 很多use of undeclared identifier 'UIApplication'failed to import bridging header '/Users/funkyLover/Desktop/ios-working-on/integrate/ios-unity/UnityBridge.h'

解决方案:在<Foundation/Foundation.h>

中导入<UIKit/UIKit.h>UnityBridge.h
  • ld:找不到-lVuforia的库

解决方案:将$(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

1 个答案:

答案 0 :(得分:0)

在unity3d论坛中存在同样的问题并找到solution

  

c ++语言方言选项:编译器默认 - &gt; C ++ 11

它完美地解决了我在unity3d 5.4.0f3

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