Skip to content

Commit

Permalink
Extend simulator support to include arm64 architecture (#131)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ferencIOS authored Oct 4, 2024
1 parent b42843e commit f729ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/iOS/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ open class Device {
case "iPod9,1": return .iPodTouch7Gen

/*** Simulator ***/
case "i386", "x86_64": return .simulator
case "i386", "x86_64", "arm64": return .simulator

default:
assertionFailure("New Device Found! Model Code:\(code). Please create a PR to the repo.")
Expand All @@ -137,7 +137,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
Expand Down

0 comments on commit f729ac2

Please sign in to comment.