【问题标题】:Unity Google Play Games Plugin Won't Compile in Xcode iOSUnity Google Play 游戏插件无法在 Xcode iOS 中编译
【发布时间】:2014-07-31 13:19:11
【问题描述】:

每当我尝试在 Xcode 中编译 Unity 游戏时,都会收到 3 个来自 Unity Google Play 游戏插件的编译错误:

GPGSAchOrLbDelegate.h - Lexical or Preprocessor Issue 'GooglePlayGames/GooglePlayGames.h' file not found

GPGSRealTimeRoomDelegate.h - Lexical or Preprocessor Issue 'GooglePlayGames/GooglePlayGames.h' file not found

GPGSManager.h - Lexical or Preprocessor Issue 'GooglePlus/GooglePlayGames.h' file not found

我不知道为什么会这样,我正确地遵循了所有设置说明。 任何帮助将不胜感激!

【问题讨论】:

    标签: ios xcode unity3d google-play-games


    【解决方案1】:

    一个问题是他们最近在最近的更新中更改了库中的许多方法名称...

    这有可能让你失望了?

    解决这个问题非常困难,但我在这里找到了一些关于这个的讨论,例如,

    http://answers.unity3d.com/questions/679424/google-play-games-plugin-for-unity-not-authenticat.html

    在 iOS 上比在 Android 上要容易一些。


    另外:请注意,本质上,您没有包含 GooglePlayGames.h 文件。包括指向您遵循的“哪些”说明的链接,以猜测哪个步骤有问题。 (大多数 Unity 插件 - 例如 Prime31 - 都有一个“预处理器”阶段,可以为您执行此操作,或者在 Android 的情况下填充该死的清单。那个阶段出了点问题。)

    【讨论】:

    • 我授予您赏金乔,因为您的回答对那些无法负担在 xcode 中开始一个全新项目的搜索者有帮助,非常感谢!我添加了指向我为后代遵循的说明的链接。
    【解决方案2】:

    实际上我自己解决了这个问题,方法是删除插件并重新开始,然后开始一个全新的 xcode 项目,而不是附加到旧项目。

    刺激和耗时,但我最终到达了那里!

    【讨论】:

      猜你喜欢
      • 2022-06-22
      • 2019-07-08
      • 2021-10-07
      • 1970-01-01
      • 2018-01-31
      • 1970-01-01
      • 2017-02-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多