Hi,
i'm trying to follow the steps from the Virtualization WWDC22 session. The sample app provided works ok "as is", but if I use the same APIs in my own app (i.e. a project I started from scratch), I get errors such as
Internal Virtualization error. Installation service returned an unexpected error.
when downloading the "best supported" image via VZMacOSRestoreImage.fetchLatestSupportedWithCompletionHandler
, and
Internal Virtualization error. Unable to connect to installation service.
if I try and install one I downloaded myself.
I did add the
<key>com.apple.security.virtualization</key>
<true/>
entitlement to my own app and (since this is arm), it is codesigned (with -
) . But could it be that there is some other application-level flag or setup needed to enable virtualization use?
Since I'm calling the exact same APIs, and neither seem to depend on much prior setup I could get wrong, it seems weird that they work in the sample app but not when called from my own app...
Ideas? thanx!