macOS Local Network Permission Prompts Blocking CI Automation

We use TeamCity as our Continuous Integration (CI) solution to build and run automated tests. These are integration tests executed through our 4D application, which is properly code‑signed and notarized. These CI machines are heavily used and build multiple versions per day, making them critical to our development workflow. However, we are experiencing an issue on some machines: after a certain period of time, network communication through our application stops working, while network communication remains fully functional when using third‑party tools (for example, LDAP clients). Based on our investigation, this issue appears to be related to Local Network Privacy management. We have followed the procedure described in Apple’s Technical Note: TN3179: Understanding local network privacy | Apple Developer Documentation to reset network authorizations, but this has not been sufficient to resolve the issue. In addition, our CI environment requires acknowledging a large number of Local Network access permission prompts. Given that these machines build multiple versions per day and are intended to run unattended, this is not practical in an automated CI context. We have around ten Macs dedicated to running these tests, and manually approving these pop‑ups is not a viable solution.

Answered by DTS Engineer in 883768022

The most recent update to TN3179 documents two user defaults, AllowedEthernetLocalNetworkAddresses and AllowedWiFiLocalNetworkAddresses, that were specifically created to help folks in your situation. Have you tried them?

Share and Enjoy

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

The most recent update to TN3179 documents two user defaults, AllowedEthernetLocalNetworkAddresses and AllowedWiFiLocalNetworkAddresses, that were specifically created to help folks in your situation. Have you tried them?

Share and Enjoy

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

macOS Local Network Permission Prompts Blocking CI Automation
 
 
Q