Repository navigation
Stop a build in iCloud Drive and say why (#263) - #279
Merged
Merged
Conversation
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'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix or feature? A fix merges once CI is green, a feature after 48 hours. Maintainers label it
bugorenhancement.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: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.pyis 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
cd frontend && swift testpasses (508 tests, 15 skipped). NewCloudFolderTestscover 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-qthint and localization tests pass.gen_localization.pyleaves no diff.isUbiquitousItemis true under~/Library/Mobile Documentsand not for ordinary folders. I could not check a Mac with Desktop and Documents synced, so that detection is unverified.Screenshots
None.
Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly: a change there is a patch inpatches/(scripts/patches.py export, andpatches.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#...