最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - MacOS 15.4 - NSNetServicesErrorCode = "-72008" - Stack Overflow

programmeradmin4浏览0评论

I'm working on an app using Apple's MultipeerConnectivity functionality. I have just updated my mac to MacOS 15.4 and now the Multipeer functionality is broken.

I'm getting the following error code when I try to start the network, specifically when I begin to advertise:

Server did not publish: errorDict [{
    NSNetServicesErrorCode = "-72008";
    NSNetServicesErrorDomain = 10;
}].

I have looked through the internet and only found this single new thread:

Here is my plist file which I see could have something to do with it:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ".0.dtd">
<plist version="1.0">
<dict>
    <key>NSLocalNetworkUsageDescription</key>
    <string>This app requires access to your local network to detect and connect to nearby devices for improved connectivity.</string>
    <key>NSBonjourServices</key>
    <array>
        <string>_example-service._tcp</string>
        <string>_example-service._udp</string>
    </array>
</dict>
</plist>

Steps to reproduce:

  • Update mac to MacOS 15.4 (Xcode and iOS version doesn't matter)
  • Try to start a multipeer network and advertise the device
发布评论

评论列表(0)

  1. 暂无评论