Drop Intel device support from the build scripts and project

This commit is contained in:
Stefan Ceriu
2026-09-19 11:45:31 +03:00
parent 223ddeae22
commit 379a5cd1bc
3 changed files with 4 additions and 13 deletions
+1 -8
View File
@@ -11,9 +11,7 @@ enum Profile: String, ExpressibleByArgument {
enum Target: String, ExpressibleByArgument, CaseIterable {
case iOS = "aarch64-apple-ios"
case simulatorARM64 = "aarch64-apple-ios-sim"
case simulatorIntel = "x86_64-apple-ios"
case macARM64 = "aarch64-apple-darwin"
case macIntel = "x86_64-apple-darwin"
}
struct BuildSDK: AsyncParsableCommand {
@@ -104,12 +102,7 @@ struct BuildSDK: AsyncParsableCommand {
if device > 0 {
buildCommand.append(" --target \(Target.iOS.rawValue)")
} else if simulator > 0 {
let hostArchitecture = try Zsh.run(command: "arch")
if hostArchitecture?.trimmingCharacters(in: .whitespacesAndNewlines) == "arm64" {
buildCommand.append(" --target \(Target.simulatorARM64.rawValue)")
} else {
buildCommand.append(" --target \(Target.simulatorIntel.rawValue)")
}
buildCommand.append(" --target \(Target.simulatorARM64.rawValue)")
} else if !target.isEmpty {
target.forEach { buildCommand.append(" --target \($0.rawValue)") }
}