我的应用程序正在使用两个广播服务(_xxx-xx-xxx._tcp,_xxx._tcp(来搜索网络中的设备。为此,我是否需要为应用程序添加networking-multicast entitlement
?
目前,我已经在NSBonjourServices
和NSLocalNetworkUsageDescription
中添加了服务,并且运行良好。
在苹果提供的示例教程中
https://developer.apple.com/videos/play/wwdc2020/10110/
指示它请求授权。
您可以在中找到问题的答案https://developer.apple.com/forums/thread/663875
也提到了目前的例外情况。