From fd1fdabcd3e4e4d0b10ef39a96ac76bdf0686934 Mon Sep 17 00:00:00 2001 From: ferencIOS <39296224+ferencIOS@users.noreply.github.com> Date: Mon, 19 Feb 2024 08:12:17 +0100 Subject: [PATCH] Extend simulator support to include arm64 architecture - Add 'arm64' to the list of architectures recognized as simulators in Device.swift. - This update ensures compatibility with simulators running on Apple Silicon Macs, enhancing the development experience on these newer platforms. --- Source/iOS/Device.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/iOS/Device.swift b/Source/iOS/Device.swift index 4810403..e074f5b 100644 --- a/Source/iOS/Device.swift +++ b/Source/iOS/Device.swift @@ -112,7 +112,7 @@ open class Device { case "iPod9,1": return .iPodTouch7Gen /*** Simulator ***/ - case "i386", "x86_64": return .simulator + case "i386", "x86_64", "arm64": return .simulator default: return .unknown } @@ -127,7 +127,7 @@ open class Device { return .iPad } else if versionCode.contains("iPod") { return .iPod - } else if versionCode == "i386" || versionCode == "x86_64" { + } else if versionCode == "i386" || versionCode == "x86_64" || versionCode == "arm64" { return .simulator } else { return .unknown