@Frameworks Engineer
We're using NetServiceBrowser from NSNetServices. But it does not return an error code telling us about the missing permission if the user has rejected the permission.
This API is not deprecated and it even got a new error code if the configuration in the Info.Plist is not present. I think this needs to return an error if you try to browse and the user has rejected.
Switching to NWBrowser - which was only added with iOS 13 leaves us with the hassle of having to use two APIs in parallel. Both of them not deprecated.
Please just add a proper error to NetServiceBrowser
Post
Replies
Boosts
Views
Activity
@Frameworks Engineer
Can we please get an error for NSNetServiceBrowser as well? NWBrowser is iOS13 only, NetServiceBrowser is not deprecated and even got an error if you forgot to setup the stuff in the Info.plist. WHY should it not return an error but NWBrowser does?
What seems to have helped was closing the project in Xcode 15, Opening in Xcode 14, building there and then switching back to Xcode 15.
Now I seem to be able to build and run from Xcode 15 to my iOS 17 Beta device!