Skip to content

Instantly share code, notes, and snippets.

@pookjw
Created March 19, 2025 15:30
Show Gist options
  • Save pookjw/5c4065b23423b911baa1880690e1b101 to your computer and use it in GitHub Desktop.
Save pookjw/5c4065b23423b911baa1880690e1b101 to your computer and use it in GitHub Desktop.
#import <Virtualization/Virtualization.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSDictionary *dic = @{
@"DataRepresentationVersion": @2,
@"MinimumSupportedOS": @[@13, @0, @0],
@"PlatformVersion": @4
};
NSData *data = [NSPropertyListSerialization dataWithPropertyList:dic format:NSPropertyListBinaryFormat_v1_0 options:0 error:nil];
VZMacHardwareModel *m = [[VZMacHardwareModel alloc] initWithDataRepresentation:data];
assert(m.supported);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment