【问题标题】:Google Play Game in ios using Unity3d在 iOS 中使用 Unity3d 的 Google Play 游戏
【发布时间】:2014-06-18 01:21:18
【问题描述】:

我正在测试 Unity3d 的 Google Play 游戏插件。我使用来自Minimal 的代码,当我点击authenticate 按钮时,我收到此错误:

2014-06-18 09:16:05.610 minimal[20466:60b] GPGSAuthenticateWithCallback.
2014-06-18 09:16:05.612 minimal[20466:60b] GPGSManager initializing and authenticating.
2014-06-18 09:16:05.623 minimal[20466:60b] GPPSignIn initialized.
2014-06-18 09:16:05.623 minimal[20466:60b] GPPSignIn attempting sign in now.
2014-06-18 09:16:05.673 minimal[20466:60b] -[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1a852890
2014-06-18 09:16:05.674 minimal[20466:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1a852890'
  1. 我该如何解决这个问题?

  2. 我在 Unity3d 中测试 minimal 也得到消息身份验证失败。我可以在 Unity3d 中进行测试吗?

【问题讨论】:

    标签: ios unity3d google-play-services


    【解决方案1】:

    我发现了问题。当我检查https://developers.google.com/games/services/ios/quickstart 时,我通过选项 2:手动安装 -> 步骤 6:

    解决了我的问题

    将 ObjC 链接器标志添加到应用目标的构建设置。在你的 目标设置,选择 Build Settings > Linking > Other Linker Flags, 然后添加 -ObjC 作为标志。

    Other Linker Flags: -ObjC
    

    我发现其他一些人有类似的错误但不同的解决方案:

    Google Play Game Services iOS crash on sign in

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-22
      • 1970-01-01
      • 2016-12-20
      • 2019-01-14
      • 2014-03-07
      相关资源
      最近更新 更多