Created
March 19, 2025 15:30
-
-
Save pookjw/5c4065b23423b911baa1880690e1b101 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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