fix(cli): use platform name to detect iOS architecture to build (#13483)

This commit is contained in:
Lucas Fernandes Nogueira
2025-05-21 14:12:44 -03:00
committed by GitHub
parent dbcfaa18d7
commit 5a5291d66c
2 changed files with 8 additions and 1 deletions

View File

@@ -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") {