Skip to content

Commit 5a5291d

Browse files
authored
fix(cli): use platform name to detect iOS architecture to build (#13483)
1 parent dbcfaa1 commit 5a5291d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-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+
Fix simulator build detection on Xcode.

crates/tauri-cli/src/mobile/ios/xcode_script.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ pub fn command(options: Options) -> Result<()> {
175175

176176
let isysroot = format!("-isysroot {}", options.sdk_root.display());
177177

178-
let simulator = options.arches.contains(&"Simulator".to_string());
178+
let simulator =
179+
options.platform == "iOS Simulator" || options.arches.contains(&"Simulator".to_string());
179180
let arches = if simulator {
180181
// when compiling for the simulator, we don't need to build other targets
181182
vec![if cfg!(target_arch = "aarch64") {

0 commit comments

Comments
 (0)