mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
fix(cli): use platform name to detect iOS architecture to build (#13483)
This commit is contained in:
committed by
GitHub
parent
dbcfaa18d7
commit
5a5291d66c
@@ -175,7 +175,8 @@ pub fn command(options: Options) -> Result<()> {
|
||||
|
||||
let isysroot = format!("-isysroot {}", options.sdk_root.display());
|
||||
|
||||
let simulator = options.arches.contains(&"Simulator".to_string());
|
||||
let simulator =
|
||||
options.platform == "iOS Simulator" || options.arches.contains(&"Simulator".to_string());
|
||||
let arches = if simulator {
|
||||
// when compiling for the simulator, we don't need to build other targets
|
||||
vec![if cfg!(target_arch = "aarch64") {
|
||||
|
||||
Reference in New Issue
Block a user