ios - Unity Google Play 游戏插件无法在 Xcode iOS 中编译

标签 ios xcode unity3d google-play-games

每当我尝试在 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

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

最佳答案

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

这有可能让你抓到了吗?

很难解决这个问题,但是我在这里找到了一些关于这个的讨论,

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

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


或者:请注意,您基本上没有包含 GooglePlayGames.h 文件。包括指向您遵循的“哪些”说明的链接,以猜测哪一步有问题。 (大多数 Unity 插件 - 像 Prime31 - 都有一个“预处理器”阶段,可以为你做这个,或者在 Android 的情况下填充该死的 list 。那个阶段出了问题。)

关于ios - Unity Google Play 游戏插件无法在 Xcode iOS 中编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24146734/

相关文章:

ios - 开发团队未显示在 Xcode 中

ios - Facebook 请求通知未显示在 iOS 移动版 safari 中,而是显示在 native facebook 应用程序中

ios - 在另一个项目中使用 Xcode 项目

unity3d - 在 Unity 2d 中使用坐标系和游戏屏幕?

ios - 符合 Swift 中的 UITableViewDelegate 和 UITableViewDatasource 吗?

ios - NSClassFromString() 总是返回 nil

xcode - 将表格 View 行高设置为标签高度

ios - 如何使用由 Swift 编写的 Xcode 中 TabBarController 管理的 ViewController 处理 iOS 应用程序的静态 QuickActions

c# - 如何在 Unity 中全局为类创建别名?

Unity3d 项目使 VSCode 崩溃