if (@available(iOS 14.0, *)) {
BOOL isOnMac = [[NSProcessInfo processInfo] isiOSAppOnMac];
NSLog(@"%@",@(isOnMac));
} else {
// Fallback on earlier versions
}
if (@available(iOS 14.0, *)) {
BOOL isOnMac = [[NSProcessInfo processInfo] isiOSAppOnMac];
NSLog(@"%@",@(isOnMac));
} else {
// Fallback on earlier versions
}
本文标题:如何判断iOS代码是否运行在M1芯片的Mac电脑上
本文链接:https://www.haomeiwen.com/subject/puqbqltx.html
网友评论