fix(cli): only validate iOS lib on debug builds (#10638)

This commit is contained in:
Lucas Fernandes Nogueira
2024-08-15 09:12:21 -03:00
committed by GitHub
parent 521d1d5cdb
commit b160f9359d
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Only validate the output iOS library on debug builds.

View File

@@ -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()));