mirror of
https://github.com/tauri-apps/cargo-mobile2.git
synced 2026-01-31 00:35:21 +01:00
fix: iOS dev on macOS with Intel chip regression (#448)
use the proper x86_64 simulator arch
This commit is contained in:
committed by
GitHub
parent
db6c642269
commit
44a5dd6f90
5
.changes/fix-intel-sim-dev-regression.md
Normal file
5
.changes/fix-intel-sim-dev-regression.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"cargo-mobile2": patch
|
||||
---
|
||||
|
||||
Fix regression on development on macOS with Intel chip.
|
||||
@@ -467,7 +467,12 @@ impl Exec for Input {
|
||||
let simulator = arches.contains(&"Simulator".to_string());
|
||||
let arches = if simulator {
|
||||
// when compiling for the simulator, we don't need to build other targets
|
||||
vec!["arm64".to_string()]
|
||||
vec![if cfg!(target_arch = "aarch64") {
|
||||
"arm64"
|
||||
} else {
|
||||
"x86_64"
|
||||
}
|
||||
.to_string()]
|
||||
} else {
|
||||
arches
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user