无法使用沙盒登录 Xbox Live 测试帐户

Can't sign into Xbox Live test account using sandbox

我们正在将我们的 Unity3D 游戏移植到 UWP,我们遇到了与 Xbox Live 沙盒环境相关的障碍。 我们做了以下事情:

完成所有这些步骤后,我们遇到了以下问题:

在 Xbox One 上

当我们尝试使用 XboxLiveUser.SignInAsync 函数在游戏中登录 Xbox Live 时(来自 Microsoft.Xbox.Services.System命名空间)我们得到以下异常:

System.InvalidOperationException: Arg_InvalidOperationException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SharedLibrary!<BaseAddress>+0x4511ee
at SharedLibrary!<BaseAddress>+0x451168
...

上 Windows 10 台电脑

当我们尝试在游戏中登录 Xbox Live 时,弹出错误 0x87DD0005

既然您正在为您的游戏使用 Xbox Live 创意者计划,那么您应该将 "XboxLiveCreatorsTitle" 添加到您的 xboxservices.config 文件类似

{
    "TitleId": 1859112156,
    "PrimaryServiceConfigId": "00000000-0000-0000-0000-00006ecfccdc",
    "XboxLiveCreatorsTitle": true
}

参考自Associate your Visual Studio project with your Xbox Live enabled title:

  1. XboxLiveCreatorsTitle must be set to true for titles in the Xbox Live Creators Program as it changes the sign-in method to work for titles in the Xbox Live Creators Program.

此外,你也可以检查你Sandbox and Test accounts。切换 PC 的开发沙盒后,您可以先使用测试帐户登录 Xbox 应用程序,看看它们是否运行良好。

此外,在测试之前,不要忘记通过单击 Xbox 上的 测试 按钮发布您的 Xbox Live 服务配置实时配置页面。