Skip to content

Commit b160f93

Browse files
authored
fix(cli): only validate iOS lib on debug builds (#10638)
1 parent 521d1d5 commit b160f93

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:bug
3+
"@tauri-apps/cli": patch:bug
4+
---
5+
6+
Only validate the output iOS library on debug builds.

tooling/cli/src/mobile/ios/xcode_script.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ pub fn command(options: Options) -> Result<()> {
217217
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()));
218218
}
219219

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

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

0 commit comments

Comments
 (0)