简体   繁体   English

OS X Yosemite上的Game Center对接不起作用

[英]Game Center Matchmaking on OS X Yosemite Not Working

I'm trying to get my game's multiplayer to work on OS X Yosemite. 我正在尝试让游戏的多人游戏在OS X Yosemite上运行。 Multiplayer works perfectly on iOS, but on OS XI have encountered many problems. 多人游戏可以在iOS上完美运行,但是在OS XI上却遇到了许多问题。

Before I discuss the issue, let me first explain my setup. 在讨论问题之前,让我先解释一下我的设置。 I have my OS X app setup in iTunes connect with game center enabled and the multiplayer compatibility is setup correctly as well. 我在iTunes中启用了OS X应用程序设置,并启用了游戏中心连接,并且也正确设置了多人游戏兼容性。 I have Game Center enabled in the Xcode project and the appropriate entitlements. 我在Xcode项目中启用了Game Center和相应的权利。 I'm using two macs to test. 我正在使用两台Mac进行测试。 Both are logged in to unique game center accounts and sandbox is enabled. 两者都登录到唯一的游戏中心帐户,并且启用了沙箱。

When I run the app, the local player gets successful authenticated on both macs. 当我运行该应用程序时,本地播放器在两台Mac上都成功通过了身份验证。 However when I try searching for a match, no players are ever found. 但是,当我尝试搜索比赛时,找不到任何球员。

Is game center multiplayer matchmaking not working on Yosemite? 游戏中心多人对接会不适用于优胜美地吗? Once again, my iOS app works fine on sandbox servers, it's just the OS X app that isn't working. 同样,我的iOS应用在沙盒服务器上运行良好,只是OS X应用无法正常工作。

This is serious because I currently can't test my multiplayer game at all on OS X until this is resolved. 这很严重,因为在解决此问题之前,我目前无法在OS X上测试我的多人游戏。 Has anyone had success getting multiplayer working on Yosemite? 有没有人成功让多人游戏在优胜美地工作?

Edit: I also have multiplayer compatibility set so that iOS users can play with OS X users. 编辑:我还设置了多人游戏兼容性,以便iOS用户可以与OS X用户一起玩。 But the matchmaking still won't find players when I search using one mac and one iOS device. 但是当我使用一台Mac和一台iOS设备进行搜索时,对接会仍然找不到玩家。

The problem was that the "com.apple.security.network.server" entitlement was missing. 问题是缺少“ com.apple.security.network.server”权利。 It turns out that when you enable the Game Center capability in the new Xcode, only the "com.apple.security.network.client" entitlment is added by default, you still need to manually add the "com.apple.security.network.server" entitlement! 事实证明,当您在新的Xcode中启用游戏中心功能时,默认情况下仅添加“ com.apple.security.network.client”感言,您仍然需要手动添加“ com.apple.security.network” .server”权利!

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM