【问题标题】:Unity XCode project GooglePlayService build issueUnity XCode 项目 GooglePlayService 构建问题
【发布时间】:2015-06-01 06:53:34
【问题描述】:

我已经添加了 UIKit.framework,

但我会在下面的 XCode 中得到构建错误,

有人知道怎么解决吗?

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_UIPresentationController", referenced from:
      objc-class-ref in gpg(GPGToastView.o)
  "_OBJC_CLASS_$_UIUserNotificationSettings", referenced from:
      objc-class-ref in gpg(GPGManager.o)
  "_OBJC_CLASS_$_UIMutableUserNotificationCategory", referenced from:
      objc-class-ref in gpg(GPGManager.o)
  "_OBJC_CLASS_$_UIMutableUserNotificationAction", referenced from:
      objc-class-ref in gpg(GPGManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

XCode 版本:5.1.1

【问题讨论】:

    标签: xcode unity3d google-play-games


    【解决方案1】:

    您要检查其他链接器标志并确保添加了 -ObjC。

    当您从 Unity 构建 XCode 项目时,Google Play 游戏插件会显示一个对话框,其中包含有关如何在 XCode 中构建项目的说明。 这些说明也记录在 https://github.com/playgameservices/play-games-plugin-for-unity#building-for-ios 的文档中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-25
      • 2012-06-02
      相关资源
      最近更新 更多