无法在真实设备上运行RealTimeRoom Google-Play-Games iOS ButtonClicker2000示例 [英] Can't run RealTimeRoom Google-Play-Games iOS ButtonClicker2000 sample on real device

查看:191
本文介绍了无法在真实设备上运行RealTimeRoom Google-Play-Games iOS ButtonClicker2000示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在 Real 设备上运行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:身份验证操作开始:登录
NFO:身份验证操作登录完成状态VALID
错误:试图获取无效玩家的名称
错误:尝试得到一个vatar无效玩家的URL
错误:尝试获取无效玩家的ID
错误:尝试获取无效玩家的标题
错误:尝试获取无效玩家的当前xp
错误:尝试获取最后一级无效玩家的时间戳
错误:尝试获取当前级别的无效玩家
错误:尝试获取无效PlayerLevel的级别号
错误:尝试获取无效PlayerLevel的最小xp
错误:尝试获取无效PlayerLevel的最大xp
错误:尝试获取无效播放器的下一级别< br />
错误:尝试获取无效PlayerLevel的级别数量
错误:尝试获取无效PlayerLevel的最小xp
错误:尝试获取无效PlayerLevel的最大xp
[核心](错误)__49- [GPGService executeOperation:completionHandler:] _ block_invoke:[main]服务器操作失败[appstate.states.list]
错误:操作无法完成。 (权限不足)
错误完整:错误域= com.google.GTLJSONRPCErrorDomain代码= 403操作无法完成(权限不足)UserInfo = 0x1758e420 {error =权限不足,GTLStructuredError = GTLErrorObject 0x175b2e00: {message:权限不足代码:403数据:[1]},NSLocalizedFailureReason =(权限不足)}
GooglePlayGames登录完毕!
VERBOSE:自动播种快照缓存。
VERBOSE:自动播种的成就缓存。
VERBOSE:自动播种的事件缓存。
显示最大玩家数为4
的RTRVC针对< GPGLauncherWindowRootViewController:0x176cb3c0>开始/结束外观转换的非平衡调用。
** INFO:连接retry.getRetryAuthToken():1
INFO:令牌已过期。令人耳目一新。
libc ++ abi.dylib:以类型std :: __ 1的未捕获异常终止::: system_error:condition_variable :: timed wait:互斥锁未锁定:不允许操作**






我该如何解决这个错误?任何帮助真的很感谢

解决方案

最终,我找到了解决这个问题的工作方案。我不知道到底什么时候,但是Google的人为C ++ SDK添加了objective c头文件。这些头文件是C ++的一种绑定。所以C ++ SDK变成了拖放式的。

I'm trying to run Google-Play-Games iOS sample ButtonClicker2000 project on Real Device. (quickstart: https://developers.google.com/games/services/ios/quickstart
downloads: https://developers.google.com/games/services/downloads/)

  1. The process of signing in to GooglePlayService does not show any error.
  2. I'm sure that my google console project setted up correctly.
  3. I don't have any problem when launching on emulator

BUT on a real device (it doesn't matter on iphone or ipad) when i click on quick match button i get this error (at the bottom):


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**


How can i fix this bug? Any help is really appreciated

解决方案

Eventually i've found working solution for this issue. I don't know when exactly but google's guys added "objective c" headers for C++ SDK. These headers are kind of bindings for C++. So the C++ SDK became drag-and-dropable.

这篇关于无法在真实设备上运行RealTimeRoom Google-Play-Games iOS ButtonClicker2000示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆