Skip to content

Commit 6faa032

Browse files
authored
fix(cli): iOS code signing failing on CI (#10854)
Looks like Apple cannot handle development profile automatic provisioning well With this change we now skip code signing for build() and archive(), and let the export() function handle signing see fastlane/fastlane#19973 (comment) for more information
1 parent 82b084e commit 6faa032

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed
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+
Fixes iOS code signing failing on CI due to a missing development certificate.

Cargo.lock

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

crates/tauri-cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tauri-cli"
3-
version = "2.0.0-rc.9"
3+
version = "2.0.0-rc.8"
44
authors = ["Tauri Programme within The Commons Conservancy"]
55
edition = "2021"
66
rust-version = "1.71"
@@ -36,7 +36,7 @@ name = "cargo-tauri"
3636
path = "src/main.rs"
3737

3838
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\", target_os = \"windows\", target_os = \"macos\"))".dependencies]
39-
cargo-mobile2 = { version = "0.16", default-features = false }
39+
cargo-mobile2 = { version = "0.17", default-features = false }
4040

4141
[dependencies]
4242
jsonrpsee = { version = "0.24", features = ["server"] }
@@ -47,7 +47,7 @@ sublime_fuzzy = "0.7"
4747
clap_complete = "4"
4848
clap = { version = "4.5", features = ["derive", "env"] }
4949
anyhow = "1.0"
50-
tauri-bundler = { version = "2.0.1-rc.7", default-features = false, path = "../tauri-bundler" }
50+
tauri-bundler = { version = "2.0.1-rc.6", default-features = false, path = "../tauri-bundler" }
5151
colored = "2.1"
5252
serde = { version = "1.0", features = ["derive"] }
5353
serde_json = { version = "1.0", features = ["preserve_order"] }

crates/tauri-cli/src/mobile/ios/build.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use anyhow::Context;
2424
use cargo_mobile2::{
2525
apple::{
2626
config::Config as AppleConfig,
27-
target::{BuildConfig, ExportConfig, Target},
27+
target::{ArchiveConfig, BuildConfig, ExportConfig, Target},
2828
},
2929
env::Env,
3030
opts::{NoiseLevel, Profile},
@@ -301,7 +301,9 @@ fn run_build(
301301

302302
let credentials = auth_credentials_from_env()?;
303303

304-
let mut build_config = BuildConfig::new().allow_provisioning_updates();
304+
let mut build_config = BuildConfig::new()
305+
.allow_provisioning_updates()
306+
.skip_codesign();
305307
if let Some(credentials) = &credentials {
306308
build_config = build_config.authentication_credentials(credentials.clone());
307309
}
@@ -314,7 +316,14 @@ fn run_build(
314316
build_config,
315317
)?;
316318

317-
target.archive(config, env, noise_level, profile, Some(app_version))?;
319+
target.archive(
320+
config,
321+
env,
322+
noise_level,
323+
profile,
324+
Some(app_version),
325+
ArchiveConfig::new().skip_codesign(),
326+
)?;
318327

319328
let mut export_config = ExportConfig::new().allow_provisioning_updates();
320329
if let Some(credentials) = credentials {

0 commit comments

Comments
 (0)