My iOS app listens for network connections via NSNetServiceListenForConnections. Every time I run my app in the Xcode Simulator, I get the firewall dialog that asks, Do you want the application to accept incoming connections? Every time I click Allow, but the firewall doesn't seem to remember, and I get the dialog again next time I run the simulator, even when I haven't rebuilt the app. Is there any way to get the firewall to remember the app and stop asking every time the simulator runs? I've tried a bunch of different things to try to work around the problem, adding firewall exceptions for Xcode and the Simulator and their executables, even adding a Run Pre-action script in the Xcode scheme to codesign the app with a Developer ID cert, but nothing helps.
I could of course turn off the firewall, but the firewall works fine with every listening app on the system except in the SImulator.