According to this post: https://stackoverflow.com/questions/76238555/why-are-txt-records-set-to-nil-when-using-nwbrowser-for-network-framework
the problem is in the NWBrowser. There are two different descriptor types, .bonjour and .bonjourWithTXTRecord.
Hopefully that will fix it. If not, you'll have to work your way through the debugging path.
Topic:
App & System Services
SubTopic:
Networking
Tags: