Bouke / NetService

Swift NetService (Bonjour / Zeroconf / mDNS) implementation for Linux
MIT License
118 stars 21 forks source link

New info.plist requirement for browsing services: NSBonjourServices #37

Open robreuss opened 4 years ago

robreuss commented 4 years ago

After leaving my project alone for a year, upgraded to Xcode 12 and suddenly couldn't find my available service when browsing, which I confirmed was published and available. Received error -72800 missingRequiredConfigurationError and tracked down that there is a new requirement where you need to list all services you want to provide your user with access to under the keyNSBonjourServices in info.plist. What a pain. The format for defining the services for that key are _myservice._tcp and _myservice._udp, depending on transport respectively.

Documention for NSBonjourServices key

If you know a way around this (I doubt that's possible) that would be great. I haven't tested this issue from the Linux side of the equation yet, and will update this issue when I do.

robreuss commented 4 years ago

I should mention why this change is frustrating to me. As far as I can tell, the result is that there is no way to create dynamically defined/named services at run-time. I'm not currently doing this for my current project, but users of my framework may want to.

Bouke commented 3 years ago

What platform is the host application running on, is this a restriction in iOS 14 or macOS 11 (Big Sur)? I'm still on Xcode 11 and macOS 10.15, so I cannot verify other versions than that.

robreuss commented 3 years ago

I'm on Xcode 12 and iOS 14, and it only impacts iOS devices in my experience, thought I suspect macOS. It has had not any impact on my Linux applications.

This impacted OSs are listed here: NSBonjourServices key