From 32c65cfb2ade5343613a86fb7c69faedce076fef Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 16 Sep 2022 11:35:33 +0200 Subject: [PATCH] Specify macOS target version manually --- crates/live_kit/build.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/live_kit/build.rs b/crates/live_kit/build.rs index f11e4a9bac..df2127cc3f 100644 --- a/crates/live_kit/build.rs +++ b/crates/live_kit/build.rs @@ -52,7 +52,13 @@ fn build_bridge(swift_target: &SwiftTarget) { if !Command::new("swift") .arg("build") .args(&["--configuration", &env::var("PROFILE").unwrap()]) - .args(&["--triple", &swift_target.target.unversioned_triple]) + .args(&[ + "--triple", + &format!( + "{}{}", + swift_target.target.unversioned_triple, MACOS_TARGET_VERSION + ), + ]) .current_dir(&swift_package_root) .status() .unwrap()