macOS Big Sur: Executing subprocess results in container_create_or_lookup_for_current_user XPC_INVALID_REPLY error

We have an app with embedded binaries (git) in its bundle, that are started as subprocesses.

On macOS 10.15 everything works just fine, the binaries are correctly signed and have the correct entitlements, however when running the app in Xcode on macOS Big Sur we get the following error when trying to run a subprocess.

Code Block
git[87505:437491] [unspecified] container_create_or_lookup_for_current_user: error = ((container_error_t)51) XPC_INVALID_REPLY\n


Did something change in Sandboxing with 10.16/11.0?
How do we resolve this?
macOS Big Sur: Executing subprocess results in container_create_or_lookup_for_current_user XPC_INVALID_REPLY error
 
 
Q