Skip to content

Commit

Permalink
fix(cli): do not force architecture when building and archiving iOS a…
Browse files Browse the repository at this point in the history
…pp (#10431)

* feat(ios): add a new cli option to dev to use project archs

Add a new option to instruct cargo-mobile2 to use architectures configured in the project for building

* update cargo-mobile2, add change file

* fix change file [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
  • Loading branch information
mrguiman and lucasfernog authored Aug 19, 2024
1 parent b25545c commit 9b99eba
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changes/fix-xcodebuild-arch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---

Do not include the target arch when building and archiving the iOS application,
which makes Xcode project modifications more flexible.
4 changes: 2 additions & 2 deletions tooling/cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tooling/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ name = "cargo-tauri"
path = "src/main.rs"

[dependencies]
cargo-mobile2 = { version = "0.13.2", default-features = false }
cargo-mobile2 = { version = "0.13.3", default-features = false }
jsonrpsee = { version = "0.24", features = [ "server" ] }
jsonrpsee-core = "0.24"
jsonrpsee-client-transport = { version = "0.24", features = [ "ws" ] }
Expand Down
1 change: 1 addition & 0 deletions tooling/cli/src/mobile/ios/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ fn run_command(options: Options, noise_level: NoiseLevel) -> Result<()> {
dev_options.features.as_ref(),
&Default::default(),
);

(interface, app, config)
};

Expand Down

0 comments on commit 9b99eba

Please sign in to comment.