Skip to content

Commit 4c3b9ec

Browse files
authored
fix(build): iOS deployment target env var is IPHONEOS_DEPLOYMENT_TARGET (#6602)
1 parent 509d467 commit 4c3b9ec

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/ios-deployment-target.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-build": patch
3+
---
4+
5+
Read the `IPHONEOS_DEPLOYMENT_TARGET` environment variable to set the Swift iOS target version, defaults to 13.

core/tauri-build/src/mobile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub fn link_swift_library(name: &str, source: impl AsRef<Path>) {
106106
swift_rs::SwiftLinker::new(
107107
&std::env::var("MACOSX_DEPLOYMENT_TARGET").unwrap_or_else(|_| "10.13".into()),
108108
)
109-
.with_ios(&std::env::var("IOS_DEPLOYMENT_TARGET").unwrap_or_else(|_| "13.0".into()))
109+
.with_ios(&std::env::var("IPHONEOS_DEPLOYMENT_TARGET").unwrap_or_else(|_| "13.0".into()))
110110
.with_package(name, source)
111111
.link();
112112
std::env::set_current_dir(curr_dir).unwrap();

0 commit comments

Comments
 (0)