Hi,
I'm not sure if i encountered a bug, or if this is expected behavior, but i have a cli that makes use of com.apple.security.virtualization entitlement, building it and running it on my local machine works like a charm.
Building it on my local machine and running it on an another one results in the following error:
Failed to validate the virtual machine configuration. Error Domain=VZErrorDomain Code=2 "The process doesn’t have the “com.apple.security.virtualization” entitlement." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=The process doesn’t have the “com.apple.security.virtualization” entitlement.}
But checking the entitlement, it's definitely there:
$ codesign -d --entitlements - ./cli
Executable=[...]/cli
[Dict]
[Key] com.apple.security.virtualization
[Value]
[Bool] true
Please note that we do not yet have an Apple developer account
Thank you