Skip to content

Commit

Permalink
fix(cli): only modify iOS code sign style when manually signing (#11101)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Sep 23, 2024
1 parent 56e0874 commit 8d22c0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .changes/fix-ios-proj-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---

Only modify the iOS Xcode project "sign style" if we need to enforce manual signing.
12 changes: 3 additions & 9 deletions crates/tauri-cli/src/mobile/ios/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,15 +447,9 @@ pub fn synchronize_project_config(
.find(|l| l.comment.contains("_iOS"))
{
for build_configuration_ref in xc_configuration_list.build_configurations {
pbxproj.set_build_settings(
&build_configuration_ref.id,
"CODE_SIGN_STYLE",
if manual_signing {
"Manual"
} else {
"Automatic"
},
);
if manual_signing {
pbxproj.set_build_settings(&build_configuration_ref.id, "CODE_SIGN_STYLE", "Manual");
}

if let Some(team) = config.development_team() {
pbxproj.set_build_settings(&build_configuration_ref.id, "DEVELOPMENT_TEAM", team);
Expand Down

0 comments on commit 8d22c0c

Please sign in to comment.