diff --git a/swift/internal/xcode_swift_toolchain.bzl b/swift/internal/xcode_swift_toolchain.bzl index 8cd32ab1c..32fa33798 100644 --- a/swift/internal/xcode_swift_toolchain.bzl +++ b/swift/internal/xcode_swift_toolchain.bzl @@ -515,7 +515,7 @@ def _swift_apple_target_triple(cpu, platform, version): environment = "-simulator" return "{cpu}-apple-{platform}{version}{environment}".format( - cpu = cpu, + cpu = cpu.replace("sim_", ""), environment = environment, platform = platform_string, version = version,