mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(cli): only validate iOS lib on debug builds (#10638)
This commit is contained in:
committed by
GitHub
parent
521d1d5cdb
commit
b160f9359d
6
.changes/only-validate-ios-lib-debug.md
Normal file
6
.changes/only-validate-ios-lib-debug.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": patch:bug
|
||||
"@tauri-apps/cli": patch:bug
|
||||
---
|
||||
|
||||
Only validate the output iOS library on debug builds.
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user