Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/sync-product-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": "minor:feat"
"@tauri-apps/cli": "minor:feat"
---

Synchronize Tauri config productName changes with the iOS Xcode project.
15 changes: 15 additions & 0 deletions crates/tauri-cli/src/mobile/ios/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,13 @@ pub fn synchronize_project_config(
.unwrap()
.identifier
.clone();
let product_name = tauri_config
.lock()
.unwrap()
.as_ref()
.unwrap()
.product_name
.clone();

let manual_signing = project_config.code_sign_identity.is_some()
|| project_config.provisioning_profile_uuid.is_some();
Expand All @@ -540,6 +547,14 @@ pub fn synchronize_project_config(
&identifier,
);

if let Some(product_name) = &product_name {
pbxproj.set_build_settings(
&build_configuration_ref.id,
"PRODUCT_NAME",
&format!("\"{product_name}\""),
);
}

if let Some(identity) = &project_config.code_sign_identity {
let identity = format!("\"{identity}\"");
pbxproj.set_build_settings(&build_configuration_ref.id, "CODE_SIGN_IDENTITY", &identity);
Expand Down