Skip to content

Stop a build in iCloud Drive and say why (#263) - #279

Merged
v0lumehi merged 1 commit into
mainfrom
v0lumehi/icloud-build-folder
Oct 30, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
v0lumehi/icloud-build-folder

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

Fix or feature? A fix merges once CI is green, a feature after 48 hours. Maintainers label it bug or enhancement.

  • Fix
  • Feature

What and why

Fixes #263.

A build whose folder is in iCloud Drive fails at the signing step with resource fork, Finder information, or similar detritus not allowed. The Mac launcher only showed "exit code 65". iCloud adds extended attributes to the files, and codesign refuses them. The build runs for a long time before it gets there.

The launcher now checks the build folder before the build starts. That is "Save to", or the folder next to the game files when it is empty. If it is in iCloud Drive (~/Library/Mobile Documents), in ~/Library/CloudStorage, or in a folder that iCloud syncs (such as Desktop and Documents when they are turned on), the build does not start. The card under the build button says why and what to do:

  • What: "The build folder is in iCloud Drive or another cloud folder."
  • Next: "Cloud folders add hidden data to every file. The signing step at the end of the build refuses it. Move your game files out of iCloud Drive, or choose a folder outside it under Save to. Then build again."
  • Button: "Choose another folder". It opens the same folder picker as Save to.

Symlinks are resolved first. A folder that does not exist yet is judged by the nearest folder above it.

The failure classifier also knows the codesign line, so a build that got past the check shows the same hint. Nothing is stripped from the user's folder.

The hint is in Chinese, English, Swedish and German. frontend-qt/nspb_qt/localization.py is regenerated. The Qt table gets the same row so the table comparison test holds. The Qt window has no iCloud check and no button for it, because that text only comes from the Mac launcher's xcodebuild step.

I did not touch scripts/. The launcher check is enough.

Checked

  • Tests: cd frontend && swift test passes (508 tests, 15 skipped). New CloudFolderTests cover the path check (iCloud Drive, CloudStorage, a lookalike folder, symlinks both ways, folders that do not exist yet), the system answer, the log classifier with the real codesign line, the four languages, and that the build stops before it starts. frontend-qt hint and localization tests pass. gen_localization.py leaves no diff.
  • Visual QA: not captured.
  • Run on a device or Mac: not run. The preflight is tested with a stubbed answer. I checked on this Mac that isUbiquitousItem is true under ~/Library/Mobile Documents and not for ordinary folders. I could not check a Mac with Desktop and Documents synced, so that detection is unverified.

Screenshots

None.

Scope

  • No vendored file (dm/, scripts/, docs/, ref/, AGENTS.md) is edited directly: a change there is a patch in patches/ (scripts/patches.py export, and patches.py check passes), with its Upstream-Status
  • A fix to the engine or a game profile is also (or first) a PR at seedds/nxnative: this PR's patch says forwarded seedds/nxnative#...
  • No keys, game files or data extracted from a game in the change or the attachments

codesign refuses the extended attributes that iCloud Drive and other cloud
folders add, so the build failed at the signing step after the long steps.
The launcher now checks the build folder before it starts and shows a hint
with a button to choose another folder. The same hint shows when the log has
codesign's 'resource fork, Finder information, or similar detritus not allowed'.
@v0lumehi v0lumehi added bug Something isn't working launcher The NX2Apple launcher app mac Mac labels Oct 30, 2026
@github-actions github-actions Bot added the windows Windows (the Qt front end) label Oct 30, 2026
@v0lumehi
v0lumehi merged commit 3a0fe79 into main Oct 30, 2026
10 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/icloud-build-folder branch November 1, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working launcher The NX2Apple launcher app mac Mac windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error exit code 65, when signing

1 participant