【问题标题】:How can I correctly send and receive data with a GroupSessionMessenger?如何使用 GroupSessionMessenger 正确发送和接收数据?
【发布时间】:2022-01-05 17:20:50
【问题描述】:

我目前尝试为我的应用设置 SharePlay,但是当我尝试使用 GroupSessionMessenger 接收和发送数据时,我总是收到以下错误:

No exact matches in call to instance method ‘messages’No exact matches in call to instance method ‘send’

有人知道我在这里缺少什么吗?

【问题讨论】:

    标签: ios swift macos facetime


    【解决方案1】:

    在浏览了我的代码一段时间后,我发现这些似乎是某种通用错误消息。真正的问题是我的模型不符合 Codable 协议。因此,只需让您尝试使用信使接收/发送的模型符合 Codable 即可!

    我还偶然发现了一些问题,因此,如果有人感兴趣,我还设置了a whole tutorial 以了解如何在 iOS 和 MacOS 之间设置 SharePlay。

    【讨论】:

      猜你喜欢
      • 2011-12-16
      • 2019-02-17
      • 2012-10-13
      • 1970-01-01
      • 1970-01-01
      • 2015-12-01
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多