【问题标题】:Error While Building Unity 5 Google Play Games for IOS为 IOS 构建 Unity 5 Google Play 游戏时出错
【发布时间】:2015-06-10 09:15:14
【问题描述】:

我目前正在使用 Unity 5.0.1f1 和 google play games 最新插件。 我正在为带有脚本后端的 ios 导出 lL2CPP。 我已经添加了所有提到的框架和库。还添加了 GoogleOpenSource.framework、GooglePlus.bundle、GooglePlus.framework、gpg.bundle、gpg.framework。

但每当我尝试使用 lL2CPP 运行时,我都会收到这些错误

Undefined symbols for architecture armv7:
"_Quest_Copy", referenced from:
Quest_Quest_Copy_m532(Object_t, HandleRef_t103, MethodInfo) in Bulk_Assembly-CSharp_1.o
(maybe you meant: _Quest_Quest_Copy_m532_MethodInfo, __Z21Quest_Quest_Copy_m532P8Object_t14HandleRef_t103P10MethodInfo )
"_QuestMilestone_Copy", referenced from:
QuestMilestone_QuestMilestone_Copy_m586(Object_t, HandleRef_t103, MethodInfo) in Bulk_Assembly-CSharp_1.o
(maybe you meant: __Z39QuestMilestone_QuestMilestone_Copy_m586P8Object_t14HandleRef_t103P10MethodInfo, _QuestMilestone_QuestMilestone_Copy_m586_MethodInfo )
"_Event_Copy", referenced from:
Event_Event_Copy_m368(Object_t, HandleRef_t103, MethodInfo) in Bulk_Assembly-CSharp_0.o
(maybe you meant: _Event_Event_Copy_m368_MethodInfo, __Z21Event_Event_Copy_m368P8Object_t14HandleRef_t103P10MethodInfo )
"_EventManager_FetchAllResponse_GetData", referenced from:
EventManager_EventManager_FetchAllResponse_GetData_m383(Object_t, HandleRef_t103, IntPtrU5BU5D_t137, UIntPtr_t104, MethodInfo*) in Bulk_Assembly-CSharp_0.o
 (maybe you meant:       __Z55EventManager_EventManager_FetchAllResponse_GetData_m383P8Object_t14HandleRef_t103P17IntPtrU5BU5D_t13712UIntPtr_t104P10MethodInfo,      _EventManager_EventManager_FetchAllResponse_GetData_m383_MethodInfo )
 ld: symbol(s) not found for architecture armv7
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

但是当我尝试将脚本后端设置为 Mono(2.x) 时,它完美地符合要求,并且工作起来就像一个魅力。 你能告诉我 lL2CPP 有什么问题吗,因为我不能使用 Mono,因为 IOS 不接受使用 Mono(2.x) 构建

【问题讨论】:

    标签: ios unity3d google-play-games


    【解决方案1】:

    查看缺少的符号,您很可能使用的是旧版本的 Google Play 游戏 SDK。任务和事件是在 1.4.1 版本中添加的,我建议从 https://developers.google.com/games/services/downloads/sdks 下载最新的 SDK 并重试构建。

    更新项目时要检查的另一件事是在其他链接器标志中添加了 -ObjC 标志。

    【讨论】:

      猜你喜欢
      • 2017-10-18
      • 2019-02-19
      • 2016-02-16
      • 2014-06-14
      • 2018-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-13
      相关资源
      最近更新 更多