-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Running flutter commands fail on macOS using nix package manager. #167823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'll keep the issue open for team's tracking / attention based on the report and considering it was fixed earlier #147142. Meantime, I'll try to install nix to recreate the reported behavior. |
/cc @LouiseHsu |
I have hit the exact same issue and the workaround doesn't fix it for me either. |
I have exact the same issue. I use Flutter 3.24.3. This seems to be irrelevant with flutter version. It happens after my Mac upgrade to 15.4 what's even more interesting, for projects that have nix env build before. Everything works fine. But for projects that does not have nix env built before. The issue above happens. |
Same for me with Flutter 3.24.4. On macOS 15.4.1. The error I get is I figured that building in Xcode ( Manually chmoded to uga+rwx, started the build in Xcode and noticed the changed permissions. But I can't find the place where the permissions are changed. |
There are some places that do But I did not find the one which sets |
I can confirm that it is a nix issue. |
Steps to reproduce
Hello, I am experiencing issues running
flutter run
,flutter build
, andflutter clean
, on MacOS, using nix package manager, nix-darwin and direnv.E.g.
flutter run
causes this error:Checking details of that directory, I see that files and directories are read only.
I am using nix package manager - so I expect some files to indeed be readonly, but that should not affect the build process. This particular dev shell flake should work - it works on another PC running NixOS.
I see that there are multiple past issues describing similar problem, and this issue should be fixed as of flutter 3.22:
#147142
#148717
Workaround presented here does not work for me
#148354 (comment)
I am using flutter 3.29.2.
Attached are full logs of flutter run, flutter run -v, and my devenv flakes (Please not that I appended .log to my nix flakes so that github would let me upload the files).
flutter_run_short.log
flutter_run.log
android.nix.log
flake.nix.log
Actual results
Error messages described above.
Logs
Logs attached as files.
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: