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

Can't run RealTimeRoom Google-Play-Games iOS ButtonClicker2000 sample on real device

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

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

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

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

最终我找到了解决这个问题的方法。我不知道确切的时间,但是 google 的人为 C++ SDK 添加了 "objective c" headers。这些 headers 是 C++ 的一种绑定。于是C++ SDK变成了drag-and-dropable。