File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
crates/tauri-cli/src/mobile/ios Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " tauri-cli " : " minor:feat"
3
+ " @tauri-apps/cli " : " minor:feat"
4
+ ---
5
+
6
+ Synchronize Tauri config productName changes with the iOS Xcode project.
Original file line number Diff line number Diff line change @@ -524,6 +524,13 @@ pub fn synchronize_project_config(
524
524
. unwrap ( )
525
525
. identifier
526
526
. clone ( ) ;
527
+ let product_name = tauri_config
528
+ . lock ( )
529
+ . unwrap ( )
530
+ . as_ref ( )
531
+ . unwrap ( )
532
+ . product_name
533
+ . clone ( ) ;
527
534
528
535
let manual_signing = project_config. code_sign_identity . is_some ( )
529
536
|| project_config. provisioning_profile_uuid . is_some ( ) ;
@@ -550,6 +557,14 @@ pub fn synchronize_project_config(
550
557
& identifier,
551
558
) ;
552
559
560
+ if let Some ( product_name) = & product_name {
561
+ pbxproj. set_build_settings (
562
+ & build_configuration_ref. id ,
563
+ "PRODUCT_NAME" ,
564
+ & format ! ( "\" {product_name}\" " ) ,
565
+ ) ;
566
+ }
567
+
553
568
if let Some ( identity) = & project_config. code_sign_identity {
554
569
let identity = format ! ( "\" {identity}\" " ) ;
555
570
pbxproj. set_build_settings ( & build_configuration_ref. id , "CODE_SIGN_IDENTITY" , & identity) ;
You can’t perform that action at this time.
0 commit comments