macos - MacOSX 上的 Unity3d 沙盒游戏中心

标签 macos unity3d sandbox game-center

由于不确定的原因,Game Center 无法识别该游戏。 如果应用程序 GameCenter 用户已登录,当您尝试在启动时登录游戏 GameCenter 时,它会显示

This Game is not recognized by Game Center.

如果用户未登录,游戏中出现登录窗口,但无法登录;日志显示:

Failed to authenticate local user The operation could not be completed because the program is not recognized by Game Center.

如果启用沙盒(沙盒 <Game>.entitlements 存在),游戏不会显示任何内容,但会将以下内容写入 Player.log:

Failed to authenticate local user Couldn’t communicate with a helper application.

在所有情况下,如果您在游戏开始后调用身份验证,那么它将写入身份验证执行的日志,但 Unity 社交变量包含:Social.localUser.userName == "Uninitialized" , Social.localUser.id == 0 .并且调用成就/排行榜接口(interface)时显示无内容,日志显示:

Unable to simultaneously satisfy constraints:
(
<NSLayoutConstraint:0xfda3ea0 >H:[GKPanelCloseButton]-(NSSpace(8))-[GKPanelCloseButton] (Names: GKPanelCloseButton:0x3281910 )>
)

Will attempt to recover by breaking constraint <NSLayoutConstraint:0xfda3ea0 H:[GKPanelCloseButton]-(NSSpace(8))-[GKPanelCloseButton] (Names: GKPanelCloseButton:0x3281910 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.
And/or, break on objc_exception_throw to catch this in the debugger.

如果您转到应用程序 GameCenter,您会看到您已登录游戏,但它是在 iOS 下,并且没有内容 - 没有图标,没有成就。

谷歌保持沉默。需要您的帮助,如何解决这个问题。

谢谢,伊格纳特

最佳答案

来自 Prime[31] 网站的简单信息:

iOS Note: to use the sandbox environment for testing you must first open the Apple GameCenter.app and log out. Once logged out, you must be using a debug build in Xcode to access the sandbox. Release builds will not use the sandbox servers so be sure to use debug builds when testing.

来源:http://prime31.com/docs#iosGameCenter

关于macos - MacOSX 上的 Unity3d 沙盒游戏中心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15903594/

相关文章:

c# - 如何在 Unity 中 EncodeToPng 压缩纹理

linux - 在 Mac OSX 和 Linux 上部署 Qt 应用程序,我需要在包中包含哪些库?

macos - LibPNG + Boost::GIL: 找不到 png_infopp_NULL

macos - GLSL 1.50 : "in int" not legal in OS X?

c# - 如何将脚本语言从 C# 更改为 UnityScript?

c# - Unity3D - 获取组件

macos - 以编程方式在启动时启动 Mac 应用程序

xcode - 在沙箱处于事件状态的 Mac OS X 中写入文件夹

文件系统沙箱中的 Linux 应用程序

python - libsandbox 和 pysandbox 的限制功能