ios - 无法在真实设备上运行 RealTimeRoom Google-Play-Games iOS ButtonClicker2000 示例

标签 ios google-play-services google-play-games

我正在尝试在真实 设备上运行 Google-Play-Games iOS 示例 ButtonClicker2000 项目。 (快速入门:https://developers.google.com/games/services/ios/quickstart
下载:https://developers.google.com/games/services/downloads/ )

  1. 登录 GooglePlayService 的过程没有显示任何 错误。
  2. 我确定我的 Google 控制台项目设置正确。
  3. 我在模拟器上启动时没有任何问题

但是 在真实设备上(在 iphone 或 ipad 上无关紧要)当我点击快速匹配按钮时出现此错误(在底部):


INFO: Auth operation started: SIGN IN 
NFO: Auth operation SIGN IN finished with status VALID
ERROR: Attempting to get name of an invalid Player 
ERROR: Attempting to get avatar URL of an invalid Player
ERROR: Attempting to get id of an invalid Player
ERROR: Attempting to get title of an invalid Player
ERROR: Attempting to get current xp of an invalid Player
ERROR: Attempting to get last level up timestamp of an invalid Player
ERROR: Attempting to get current level of an invalid Player
ERROR: Attempting to get level number of an invalid PlayerLevel
ERROR: Attempting to get minimum xp of an invalid PlayerLevel
ERROR: Attempting to get maximum xp of an invalid PlayerLevel
ERROR: Attempting to get next level of an invalid Player<br/>
ERROR: Attempting to get level number of an invalid PlayerLevel
ERROR: Attempting to get minimum xp of an invalid PlayerLevel
ERROR: Attempting to get maximum xp of an invalid PlayerLevel
[Core] (Error) __49-[GPGService executeOperation:completionHandler:]_block_invoke:[main] Server Operation Failed [appstate.states.list]
    Error: The operation couldn’t be completed. (Insufficient Permission)
    Error Full: Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation couldn’t be completed. (Insufficient Permission)" UserInfo=0x1758e420 {error=Insufficient Permission, GTLStructuredError=GTLErrorObject 0x175b2e00: {message:"Insufficient Permission" code:403 data:[1]}, NSLocalizedFailureReason=(Insufficient Permission)}
GooglePlayGames finished signing in!
VERBOSE: Automatically seeded snapshot cache.
VERBOSE: Automatically seeded achievement cache.
VERBOSE: Automatically seeded event cache.
Showing a RTRVC with max players of 4
Unbalanced calls to begin/end appearance transitions for <GPGLauncherWindowRootViewController: 0x176cb3c0>.
**INFO: Connect with retry.getRetryAuthToken(): 1
INFO: Token expired.  Refreshing.
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: condition_variable::timed wait: mutex not locked: Operation not permitted**

我该如何修复这个错误?非常感谢任何帮助

最佳答案

最终我找到了解决这个问题的有效方法。我不知道确切的时间,但谷歌的人为 C++ SDK 添加了“objective c” header 。这些 header 是 C++ 的一种绑定(bind)。因此,C++ SDK 变得可拖放。

关于ios - 无法在真实设备上运行 RealTimeRoom Google-Play-Games iOS ButtonClicker2000 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28084324/

相关文章:

ios - 从照片应用程序中选择时将 UITabBar 重新创建为 UIToolbar

ios - 如何在Objective-C中播放来自url的音频

android - SIGN_IN_REQUIRED - Google 游戏

java - Google Play 游戏 API 返回 SIGN_IN_REQUIRED

android - import - with developers google com games

ios - iTunes 拒绝支付宝申请?

ios - fatal error : unexpectedly found nil while unwrapping an Optional value while retrieving default

android - Activity 之外的 Google Play 服务 API 代码?

Android - 如何检查成就是否已解锁

java - GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN 无法正常运行