Skip to content

Commit b9b32a2

Browse files
authored
fix(cli): use sanitized iOS bundle identifier when syncing the Xcode project (#16108)
1 parent 9bc4bbc commit b9b32a2

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

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+
Fix `PRODUCT_BUNDLE_IDENTIFIER` in the iOS Xcode project being set to the raw `identifier` (with underscores) instead of the sanitized iOS bundle identifier used by the Xcode project template and the export options provisioning profiles.

‎crates/tauri-cli/src/mobile/ios/mod.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,8 @@ pub fn synchronize_project_config(
556556
project_config: &ProjectConfig,
557557
debug: bool,
558558
) -> Result<()> {
559-
let identifier = tauri_config.identifier.clone();
559+
// use the same sanitized identifier as the Xcode project template and export options
560+
let identifier = config.app().identifier();
560561
let product_name = tauri_config.product_name.clone();
561562

562563
let manual_signing = project_config.code_sign_identity.is_some()
@@ -581,7 +582,7 @@ pub fn synchronize_project_config(
581582
pbxproj.set_build_settings(
582583
&build_configuration_ref.id,
583584
"PRODUCT_BUNDLE_IDENTIFIER",
584-
&identifier,
585+
identifier,
585586
);
586587

587588
if let Some(product_name) = &product_name {

0 commit comments

Comments
 (0)