My app doesn’t use the local network but it’s presenting this permission prompt. Is there a symbolic breakpoint or another way to find out what call is producing the prompt? I’m assuming it’s buried in one of my third party libraries but need to track down which one.
Tracing the cause of the permission prompt
The prompt is either being generated by some access to an address on the local subnet directly (which could be some socket, etc), or by something in your app using Bonjour. Most apps that trigger the prompt do so because of browsing Bonjour.
To see what is causing a prompt, you can look at the logs on your device in Console.
If you don't see any relevant logs from mDNSResponder, it's more likely that this is a direct network access rather than a browse.
To see what is causing a prompt, you can look at the logs on your device in Console.
Enable Info and Debug level logs in the Action menu. Select your iOS device.
Filter for process:mDNSResponder and message:"local network". This will show you any service that is being browsed that hits a restriction, and the prompting state.
If you don't see any relevant logs from mDNSResponder, it's more likely that this is a direct network access rather than a browse.
What if the trigger is not prompt by Bonjour and URLSession? Any suggestions? Thanks very much.
Tried everything you mentioned and ended up realizing that it was the RevealApp's server.