Skip to content

Commit da8c9a7

Browse files
authored
refactor(cli): synchronize pbxproj and export options, handle cert on build (#10669)
1 parent 9bcff3c commit da8c9a7

15 files changed

Lines changed: 2491 additions & 172 deletions

.changes/ios-codesign-on-build.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:breaking
3+
"@tauri-apps/cli": patch:breaking
4+
---
5+
6+
The `IOS_CERTIFICATE`, `IOS_CERTIFICATE_PASSWORD` and `IOS_MOBILE_PROVISION` environment variables are now read by the `ios build` command instead of `ios init`.
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+
Synchronize Xcode project changes with the ExportOptions.plist file so `ios build` calls can work with code signing changes made in Xcode.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:enhance
3+
"@tauri-apps/cli": patch:enhance
4+
---
5+
6+
Modify both ExportOptions.plist and project.pbxproj to reflect changes for the `IOS_CERTIFICATE`, `IOS_CERTIFICATE_PASSWORD` and `IOS_MOBILE_PROVISION` environment variables.

tooling/cli/Cargo.lock

Lines changed: 55 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/cli/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ name = "cargo-tauri"
3939
path = "src/main.rs"
4040

4141
[dependencies]
42-
cargo-mobile2 = { version = "0.13.3", default-features = false }
42+
cargo-mobile2 = { version = "0.13.4", default-features = false }
4343
jsonrpsee = { version = "0.24", features = [ "server" ] }
4444
jsonrpsee-core = "0.24"
4545
jsonrpsee-client-transport = { version = "0.24", features = [ "ws" ] }
@@ -101,6 +101,10 @@ phf = { version = "0.11", features = ["macros"] }
101101
walkdir = "2"
102102
elf = "0.7"
103103
memchr = "2"
104+
tempfile = "3"
105+
106+
[dev-dependencies]
107+
insta = "1"
104108

105109
[target."cfg(windows)".dependencies.windows-sys]
106110
version = "0.59"

tooling/cli/src/helpers/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub mod flock;
1010
pub mod framework;
1111
pub mod fs;
1212
pub mod npm;
13+
#[cfg(target_os = "macos")]
14+
pub mod pbxproj;
1315
pub mod plugins;
1416
pub mod prompts;
1517
pub mod template;

0 commit comments

Comments
 (0)