The application I'm working needs access to a shared network drive while in development. This nominally works, but every time the app is recompiled (so hundreds of times a day), I have to give it permission to access a network volume. For obvious reasons, that isn't helpful.
Does anyone know how to grant network share access permanently? Barring that, is there a way to disable that security setting, preferably with a capability/entitlement, or at the system level as a last resort?
(The app does have the proper credentials granted in System Preferences, but I presume its signature or something changes with each recompile.)
99 times out of a 100 this is caused by the program not having a stable signing identity. The signing identity is used as a component of the designated requirement (DR), and TCC uses the DR to track whether build N+1 of your program is the same as build N. TN3127 Inside Code Signing: Requirements has a bunch of backstory on this but, in short, if you sign your app with an Apple Development signing identity, as opposed to not signing it or signing it ad hoc (Sign to Run Locally), you should be set.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"