Hi,
I am trying to update an old prototype I made for tvOS using DNSServiceBrowse()
. The target was tvOS 17.
My old build from September 2023 still works fine: It can discover computers on the same local network as the Apple TV (simulator).
However, now that I am using Xcode 16, the DNSServiceBrowse()
callback (of type DNSServiceBrowseReply)
receives the error code: -65570.
The call to DNSServiceBrowse()
itself returns no error, neither does the following call to DNSServiceProcessResult()
— which actually triggers the call of the callback.
I found nowhere in the Internet any list of possible error codes received by the callback, so I have no idea what it means.
So, my first question is: What does this error code mean? (And is there any list of the possible errors somewehere, with their meaning?)
Since it was a prototype, I have no provisioning profile defined for it. Could that be related to the issue? Since I will make a real app out that prototype (targeting tvOS 18), I will have to define a provisioning profile for it.
Would a provisioning profile for the app solve the issue?
If yes, are there any requirements for that profile that I should take into account to solve the issue?
Thank you in advance for any help,
Marc
is there a chance that my code will work if I run it on my actual Apple TV … ?
Yes. This error indicates a local network privacy restriction and, as mentioned in TN3179, local network privacy isn’t enforced on tvOS.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"