为IOS构建Unity 5 Google Play游戏时出错

时间:2015-06-10 09:15:15

标签: ios unity3d google-play-games

我目前正在使用Unity 5.0.1f1和google play games最新插件。 我使用Scripting Backend作为lL2CPP导出ios。 我已经添加了所提到的所有框架和库。还添加了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)

但是当我尝试将Scripting Backend作为Mono(2.x)时,它完全符合并且就像一个魅力。 你能否告诉我lL2CPP有什么问题因为我不能使用Mono,因为IOS不接受Mono(2.x)的构建

1 个答案:

答案 0 :(得分:0)

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

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

相关问题