Fix Flutter project builds under Nix environments on MacOS #147144
Closed
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.
Flutter projects on MacOS previously could not build when using Flutter provided by a Nix environment, as the nix store is read-only, and permissions are preserved when copying the FlutterMacOS.framework directory from the Flutter installation. This causes issues because XCode/xcbuild expect the framework directory to be writable after it is copied.
This pull request changes the rsync command used to copy the
FlutterMacOS.frameworkdirectory to include `--chmod=755" (user can read/write/execute, group can read/execute, which seems to match the permissions expected here) to ensure the permissions are correctly set..This issue fixes #147142
Pre-launch Checklist
///).(re: adding new tests - not sure if i need to add tests for this, or how I would even add tests?)
If you need help, consider asking for advice on the #hackers-new channel on Discord.