diff --git a/.changes/fix-development-team-spaces.md b/.changes/fix-development-team-spaces.md new file mode 100644 index 000000000000..05f27da23ebb --- /dev/null +++ b/.changes/fix-development-team-spaces.md @@ -0,0 +1,6 @@ +--- +"tauri-cli": patch:bug +"@tauri-apps/cli": patch:bug +--- + +Fix iOS build failing when the development team contains spaces. diff --git a/crates/tauri-cli/src/mobile/ios/mod.rs b/crates/tauri-cli/src/mobile/ios/mod.rs index 1e0e63a56ed4..dd1fb0f46ccd 100644 --- a/crates/tauri-cli/src/mobile/ios/mod.rs +++ b/crates/tauri-cli/src/mobile/ios/mod.rs @@ -452,7 +452,8 @@ pub fn synchronize_project_config( } if let Some(team) = config.development_team() { - pbxproj.set_build_settings(&build_configuration_ref.id, "DEVELOPMENT_TEAM", team); + let team = format!("\"{team}\""); + pbxproj.set_build_settings(&build_configuration_ref.id, "DEVELOPMENT_TEAM", &team); } pbxproj.set_build_settings( @@ -472,11 +473,12 @@ pub fn synchronize_project_config( } if let Some(id) = &project_config.team_id { - pbxproj.set_build_settings(&build_configuration_ref.id, "DEVELOPMENT_TEAM", id); + let id = format!("\"{id}\""); + pbxproj.set_build_settings(&build_configuration_ref.id, "DEVELOPMENT_TEAM", &id); pbxproj.set_build_settings( &build_configuration_ref.id, "\"DEVELOPMENT_TEAM[sdk=iphoneos*]\"", - id, + &id, ); }