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

Posted

技术标签:

【中文标题】无法在真实设备上运行 RealTimeRoom Google-Play-Games iOS ButtonClicker2000 示例【英文标题】:Can't run RealTimeRoom Google-Play-Games iOS ButtonClicker2000 sample on real device 【发布时间】:2015-03-20 23:34:20 【问题描述】:

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

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

但是在真实设备上(在 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**

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

【问题讨论】:

同样的问题,这是我的情况github.com/playgameservices/ios-basic-samples/issues/8 【参考方案1】:

最终我找到了解决这个问题的方法。我不知道确切的时间,但谷歌的人为 C++ SDK 添加了“objective c”标头。这些头文件是 C++ 的一种绑定。所以 C++ SDK 变成了可拖放的。

【讨论】:

以上是关于无法在真实设备上运行 RealTimeRoom Google-Play-Games iOS ButtonClicker2000 示例的主要内容,如果未能解决你的问题,请参考以下文章

UIImage imageWithContentsOfFile:无法在真实设备上运行

iOS安全区域无法在真实设备上运行

Flutter 应用程序无法在真实设备或模拟器上运行

Android Studio 应用程序可在真实设备上运行,但无法在模拟器上运行

Flutter 应用程序无法在真实的 iOS 设备上运行(白屏)

颤振互联网连接无法在真实设备上运行