2016-07-22 37 views
0

我正在使用Google Play遊戲服務實現實時多人遊戲。 並在cocos2d-x上的iphone6模擬器中運行我的代碼。Google Play遊戲快速匹配RealTime Multiplayer在iOS模擬器登錄時創建錯誤

我所有的錯誤都出現在CCLOG:

當我按下SignedIn按鈕,然後在錯誤是: 錯誤:「這個程序是不允許查詢計劃googlechrome」

當我按下快速匹配按鈕那麼錯誤是: 不平衡呼叫開始/結束的外觀轉換爲

signedIn成功後,與谷歌登入, 當我檢查isSignedIn則返回 不signedIn但在r中我已經簽名了。

我想在兩個玩家之間創建一個QuickMatch。

回答

0

此錯誤「此應用不允許查詢計劃googlechrome」,表示您沒有將計劃添加到您應用的.plist文件中。您可能還需要向plist添加另一個名爲LSApplicationQueriesSchemes的註冊表項,並將其作爲字符串項添加到「itms-books」方案中,以允許canOpenURL對其進行測試。請注意,如果您嘗試在實際設備上運行它會更好。

<key>LSApplicationQueriesSchemes</key> 
<array> 
<string>xxx</string> 
</array> 

從這個SO ticket的iOS 9以已經做了小改動,以URL方案的處理。您必須將應用程序調用的網址列入白名單,以便使用Info.plist中的LSApplicationQueriesSchemes項。

The main conclusion is that if you call the canOpenURL method on a URL that is not in your whitelist, it will return NO , even if there is an app installed that has registered to handle this scheme. A This app is not allowed to query for scheme xxx syslog entry will appear.

If you call the openURL method on a URL that is not in your whitelist, it will fail silently. A This app is not allowed to query for scheme xxx syslog entry will appear.