mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
fix(cli): iOS build crashing when development team has spaces (#12290)
Even though I couldn't even get the build to succeed when using the team name as the "developmentTeam" configuration (instead of the team ID), I've received reports that our processing of that value is broken and only works when it is escaped using `\"`.
This commit is contained in:
committed by
GitHub
parent
cd1d026f97
commit
ef21ed9ac1
6
.changes/fix-development-team-spaces.md
Normal file
6
.changes/fix-development-team-spaces.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": patch:bug
|
||||
"@tauri-apps/cli": patch:bug
|
||||
---
|
||||
|
||||
Fix iOS build failing when the development team contains spaces.
|
||||
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user