简体   繁体   English

如何成功激活 SharePlay 活动?

[英]How can i successfully activate a SharePlay activity?

Whenever I try to activate the SharePlay activity I get the following error:每当我尝试激活 SharePlay 活动时,都会出现以下错误:

SharePlayTutorial[11806:1823770] [Client] Error requesting initial state: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.group-activities.conversationmanagerhost was invalidated: failed at lookup with error 159 - Sandbox restriction." SharePlayTutorial[11806:1823770] [Client] 请求初始 state 时出错:错误域 = NSCocoaErrorDomain 代码 = 4099 “连接到名为 com.apple.group-activities.conversationmanager19 的服务的连接:Sandbox 限制无效。查找失败,出现错误。” UserInfo={NSDebugDescription=The connection to service named com.apple.group-activities.conversationmanagerhost was invalidated: failed at lookup with error 159 - Sandbox restriction.} UserInfo={NSDebugDescription=与名为 com.apple.group-activities.conversationmanagerhost 的服务的连接无效:查找失败,错误 159 - 沙盒限制。}

Does anyone know why the connection gets invalidated?有谁知道为什么连接会失效?

I found out, that my target was missing the Group Activity capability .我发现,我的目标缺少 Group Activity 功能 So just add the capability to your target and the error should be fixed.因此,只需将功能添加到您的目标,错误就应该得到修复。

I also stumbled upon some more problems, therefore, I also set up a whole tutorial on how to setup SharePlay between iOS and MacOS if someone's interested.我还偶然发现了一些问题,因此,如果有人感兴趣,我还设置了一个完整的教程,介绍如何在 iOS 和 MacOS 之间设置 SharePlay。

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

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