Post

Replies

Boosts

Views

Activity

Comment on How can I tell if NetService#publish is failing because it lacks permissions?
I can confirm that by moving from NetService to NWBrowser/NWListener (as you suggest), you do get notified of this problem in the NWBrowser#stateUpdateHandler callback. This is very helpful for me, but I'm not sure how to check that a specific NWBrowser.State instance represents waiting(-65570: PolicyDenied). I can only see this information when I print the debugDescription or print the value in the LLDB console, but how do I check specifically that the state is PolicyDenied?
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23
Comment on How do I use Xcode Previews in an app that has to support iOS 16?
Thanks for the quick response! Is it helpful to file a radar for it?
Replies
Boosts
Views
Activity
Jun ’23
Comment on How can I tell if NetService#publish is failing because it lacks permissions?
I can confirm that by moving from NetService to NWBrowser/NWListener (as you suggest), you do get notified of this problem in the NWBrowser#stateUpdateHandler callback. This is very helpful for me, but I'm not sure how to check that a specific NWBrowser.State instance represents waiting(-65570: PolicyDenied). I can only see this information when I print the debugDescription or print the value in the LLDB console, but how do I check specifically that the state is PolicyDenied?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’23