Skip to content

Commit 5eb8554

Browse files
i-c-blucasfernog
andauthored
fix(cli): Apple Dev Teams format for info::Section::Display (#7282)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
1 parent 38d0bed commit 5eb8554

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.changes/cli-apple-dev-team.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-cli': 'patch:bug'
3+
---
4+
5+
Fix `tauri info` failing when there is no available iOS code signing certificate.

tooling/cli/src/info/ios.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ pub fn items() -> Vec<SectionItem> {
1212
let teams = tauri_mobile::apple::teams::find_development_teams().unwrap_or_default();
1313
Some((
1414
if teams.is_empty() {
15-
"None".red().to_string()
15+
"Developer Teams: None".red().to_string()
1616
} else {
17-
teams
18-
.iter()
19-
.map(|t| format!("{} (ID: {})", t.name, t.id))
20-
.collect::<Vec<String>>()
21-
.join(", ")
17+
format!(
18+
"Developer Teams: {}",
19+
teams
20+
.iter()
21+
.map(|t| format!("{} (ID: {})", t.name, t.id))
22+
.collect::<Vec<String>>()
23+
.join(", ")
24+
)
2225
},
2326
Status::Neutral,
2427
))

0 commit comments

Comments
 (0)