Skip to content

Commit

Permalink
fix(cli): only validate iOS lib on debug builds (#10638)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Aug 15, 2024
1 parent 521d1d5 commit b160f93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/only-validate-ios-lib-debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---

Only validate the output iOS library on debug builds.
5 changes: 4 additions & 1 deletion tooling/cli/src/mobile/ios/xcode_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ pub fn command(options: Options) -> Result<()> {
return Err(anyhow::anyhow!("Library not found at {}. Make sure your Cargo.toml file has a [lib] block with `crate-type = [\"staticlib\", \"cdylib\", \"lib\"]`", lib_path.display()));
}

validate_lib(&lib_path)?;
// for some reason the app works on release, but `nm <path>` does not print the start_app symbol
if profile == Profile::Debug {
validate_lib(&lib_path)?;
}

let project_dir = config.project_dir();
let externals_lib_dir = project_dir.join(format!("Externals/{arch}/{}", profile.as_str()));
Expand Down

0 comments on commit b160f93

Please sign in to comment.