Command line utility launched by XCode asks for permission, delays reception

I have a command line app under active development in XCode. It is based on receiving multicast traffic and processing it. I generate this traffic with another app, and generally just leave it running.

When I do a build and run in XCode, I get a message asking me for Local Access. If I click yes, no network traffic will be received. I need to restart the command line tool multiple times until I get access.

I'm also getting a ton of repeated entries in my Setting->Privacy->Local Access.

If I configure xcode to launch with terminal, it does work, but that's not a great solution because of the external window (and the fact that I have terminal set "close if exit cleanly", so I lose my data. I can change that setting, but it is fairly inconvenient, and I don't get the console history in XCode.

Is there a way to allow my apps to run from xcode without the pop-up or with the delay in activating the network and creating new entries in the Settings?

Thanks!

The most likely cause of this problem is that you haven’t signed your code with a stable code signing identity. Without that, macOS can’t tell that build N+1 of your app is the same as build N.

I generally recommend using an Apple Development signing identity for day-to-day development.

Be warned that ad hoc signing (Sign to Run Locally in Xcode parlance) won’t help here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks, Quinn.

Making these changes (CODE_SIGN_IDENTITY="Apple Development", CODE_SIGN_STYLE="Automatic" and setting a Development team to "personal" in the XCode settings) make the pop-up go away after build and run, but the multicast still isn't received the first couple of times.

I'm using a personal team, would that affect this?

Command line utility launched by XCode asks for permission, delays reception
 
 
Q