Skip to content

Commit 1a3d1a0

Browse files
fix(ios): Tauri iOS build with binary XCFramework dependencies (#13995)
* Fix Tauri iOS build not having a PATH variable to access unzip to extract binaryTargets and also not including Frameworks when linking * Add covector change * fmt * Update crates/tauri-utils/src/build.rs Co-authored-by: Lucas Fernandes Nogueira <[email protected]> --------- Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
1 parent 37154eb commit 1a3d1a0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-utils": patch:bug
3+
---
4+
5+
Fix Tauri iOS build with binary XCFramework dependencies, allows extracting binaryTargets that are zipped and also not including XCFrameworks when linking.

crates/tauri-utils/src/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ fn link_xcode_library(name: &str, source: impl AsRef<std::path::Path>) {
7575
.arg("OTHER_SWIFT_FLAGS=-no-verify-emitted-module-interface")
7676
.current_dir(source)
7777
.env_clear()
78+
.env("PATH", std::env::var_os("PATH").unwrap_or_default())
7879
.status()
7980
.unwrap();
8081

@@ -85,6 +86,10 @@ fn link_xcode_library(name: &str, source: impl AsRef<std::path::Path>) {
8586
.join("Products")
8687
.join(format!("{configuration}-{sdk}"));
8788

89+
println!(
90+
"cargo::rustc-link-search=framework={}",
91+
lib_out_dir.display()
92+
);
8893
println!("cargo:rerun-if-changed={}", source.display());
8994
println!("cargo:rustc-link-search=native={}", lib_out_dir.display());
9095
println!("cargo:rustc-link-lib=static={name}");

0 commit comments

Comments
 (0)