Tracing the cause of the permission prompt

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.

Replies

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.
  1. Enable Info and Debug level logs in the Action menu. Select your iOS device.

  2. 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.

Note that if you don't add that service type into your Info.plist when you compile for iOS 14, the operation will be silently blocked.

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.