Skip to content

fix: duplicated major version in install notification title - #840

Open
YuriNachos wants to merge 1 commit into
XcodesOrg:mainfrom
YuriNachos:fix/install-notification-title
Open

fix: duplicated major version in install notification title#840
YuriNachos wants to merge 1 commit into
XcodesOrg:mainfrom
YuriNachos:fix/install-notification-title

Conversation

@YuriNachos

Copy link
Copy Markdown

Problem

The macOS notification posted when an Xcode install step changes showed the major version twice in its title: "\(major).\(appleDescription)" — e.g. 27.27.0 Beta 4 for Xcode 27.0 Beta 4. appleDescription already starts with the major version, so prefixing "\(major)." duplicated it.

Fix

Use version.appleDescription directly (extracted into a small testable AppState.installNotificationTitle(for:) helper). Xcode 27.0 Beta 4 now shows 27.0 Beta 4; Xcode 26.5 shows 26.5.

Test

test_InstallNotificationTitle_DoesNotDuplicateMajorVersion covers a prerelease (27.0 Beta 4), a minor release (26.5), and a patch release (10.2.1).

appleDescription already includes the major version, so prepending
major.description + "." rendered titles like "27.27.0 Beta 4".
Use appleDescription directly via a testable static helper.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant