iOS 14 DNSServiceBrowse failed: NoAuth(-65555)

Hi,
I am setting up a NSBrowser as follows:

Code Block swift
NWBrowser(for: .bonjour(type: bonjourType, domain: nil), using: parameters)


When running on iOS13, everything works great, but on iOS14, I keep getting:

nwbrowserfailondnserrorlocked [B3] DNSServiceBrowse failed: NoAuth(-65555)

Is there something that I need to specifically set for iOS14?

Kind Regards

Chris
Post not yet marked as solved Up vote post of nthState Down vote post of nthState
2.3k views

Replies

To get it working I had to add

Code Block xml
<key>NSLocalNetworkUsageDescription</key>
  <string>Network usage is required for macOS/iOS communication</string>
  <key>NSBonjourServices</key>
  <array>
    <string>_myitem._tcp</string>
  </array>


Also worth to check if there isn't a typo/difference in service name between info.plist and your NWBrowser's type or NWListener.Service's name.