Skip to content

Explain unavailable iOS install destinations - #886

Closed
thehobbit85 wants to merge 2 commits into
LNPANDY:mainfrom
thehobbit85:codex/issue-876-xcode-destination-error
Closed

thehobbit85 wants to merge 2 commits into
LNPANDY:mainfrom
thehobbit85:codex/issue-876-xcode-destination-error

Conversation

@thehobbit85

@thehobbit85 thehobbit85 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Fix or feature

  • Fix
  • Feature

What and why

Corrects the misleading signing failure in #876 and makes the failure message actionable.

The report’s Xcode command targets a physical iPhone or iPad. Xcode cannot find the requested destination, then lists other destinations and why they are ineligible. The installer previously selected the last line containing error:, so it blamed the Mac’s compatibility with the iOS shell. Selecting only Xcode’s top-level error fixed the diagnosis but left a technical sentence ending in a colon.

For this specific destination failure, the signing stage now says “Selected iPhone or iPad unavailable”. The action card explains that Xcode cannot use the selected device and asks the player to connect and unlock it, check Xcode’s Devices and Simulators, then select it again under Install on. English, Chinese and German text is provided. Other languages use the existing English fallback.

The complete original Xcode diagnostic, including the destination identifier and other destinations, remains in the build log. Other errors and the existing bundle-ID and entitlement retry paths retain their behavior.

Checked

  • Required pre-push checks: swift build && swift test passed 1,231 tests (31 skipped, zero failures). The Qt suite passed 353 tests (44 skipped, zero failures). All Git hooks remained enabled.
  • The focused shell-install, failure-row, source-size and localization suites passed 87 tests. The final wording also passed the English/Chinese/German recovery-message regression and all seven localization-rule tests.
  • The regression exercises the actual build store’s displayed message and failed signing-stage detail in English, Chinese and German, and verifies that the full original diagnostic remains in the log. It failed the message/detail assertions before the fix, including a separate red run for the missing German text. The ordinary compiler-error regression still checks that the last diagnostic is used.
  • Visual QA: rendered the native Progress and action cards from the actual failed install state with SwiftUI ImageRenderer on Apple Silicon, macOS 26.6. Inspected before/after captures in all seven display languages. The stage labels and full recovery message fit at the existing 760-point capture width.
  • The install fixture uses stand-in tools and synthetic identifiers. No physical device was used, and the original device’s installation remains unverified.

Screenshots

The before column shows the previous PR revision (d145abb5) that prompted the wording review. The after column shows the complete message and concise stage label. The original pre-PR screenshot shows the misleading Mac compatibility diagnosis.

Language Before this revision After
English English before English after
Chinese Chinese before Chinese after
German German before German after
Other display languages, with English fallback for the new message
Language Before this revision After
Swedish Swedish before Swedish after
French French before French after
Italian Italian before Italian after
Japanese Japanese before Japanese after

Scope

  • No engine files or patches changed.
  • No upstream engine PR is needed for this launcher diagnostic fix.
  • Before and after native captures are attached for every display language.
  • No keys, game files or extracted game data are included.

This corrects the diagnosis and recovery guidance. It does not establish why Xcode could not use the reporter’s device, so #876 stays open.

@thehobbit85 thehobbit85 added bug Something isn't working full-build Build the Mac app on this pull request for hands-on review labels Nov 7, 2026
@github-actions github-actions Bot added the launcher The NX2Apple launcher app label Nov 7, 2026
@v0lumehi

v0lumehi commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

I agree that the error message is a bit technical here, the proposed solution could have a more clear text though and also stops after a ":"

@github-actions github-actions Bot added the windows Windows (the Qt front end) label Nov 7, 2026
@thehobbit85 thehobbit85 changed the title Report the selected device error when shell signing fails Explain unavailable iOS install destinations Nov 7, 2026
@thehobbit85

Copy link
Copy Markdown
Contributor Author

@v0lumehi Updated in b245b2e. The stage now has a short label, and the failure message is complete:

Xcode cannot use the selected iPhone or iPad. Connect and unlock it, check Xcode’s Devices and Simulators, then select it again under Install on.

The original Xcode diagnostic stays in the build log. Added English, Chinese and German text, and attached refreshed before/after native captures for all seven display languages in the PR body.

The regression checks the real displayed message and signing-stage detail in English, Chinese and German, plus preservation of the full log. It failed before the fix. Required pre-push checks passed: swift build && swift test (1,231 tests, 31 skipped) and the Qt suite (353 tests, 44 skipped), with zero failures and all hooks enabled.

This fixes the wording and diagnosis. The original device install still needs verification on a physical iPhone or iPad, so #876 remains open.

@v0lumehi

v0lumehi commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the work, @thehobbit85. We changed how the team works, so this pull request is now handled like any other outside contribution. A change to how the launcher works or looks starts as an issue, and a maintainer has to agree to the idea before the pull request is reviewed. Please open an issue for it. Until then I leave this pull request open without a milestone. Please also keep at most three pull requests open at the same time, so each one can be reviewed properly.

@thehobbit85

Copy link
Copy Markdown
Contributor Author

This change is already linked to the existing report #876. It corrects the misleading unavailable-device diagnosis and gives recovery guidance, while leaving the reporter’s actual installation problem open. Your earlier wording feedback is addressed in b245b2e. Can #876 serve as the approval discussion for this narrowly scoped change, or would you prefer a separate idea issue for the recovery message? I’ll leave the PR awaiting that decision.

@v0lumehi

v0lumehi commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you @thehobbit85. Your change is part of #1097, the launcher UI overhaul, with you as co-author. Closing this one in favor of it. Please have a look there if something of yours is missing or changed.

@v0lumehi v0lumehi closed this Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working full-build Build the Mac app on this pull request for hands-on review launcher The NX2Apple launcher app windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants