-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Flutter hot reload and hot restart stop working on macOS #148648
Comments
This issue is similar to #139875 (which happened on VSCode but this happened even in macOS command line). That issue was closed, but I'm afraid that this problem is not finished yet. |
I've update Flutter version to 3.22.0 but this problem still remains. |
Same here,
I've add permissions, tried Flutter 3.19.1 and 3.22.0, but nothing changed. |
Thanks for your attention @darshankawar, and I've read the issue #70216 , I guess that's not a problem about the chip, but the OS. Please attention that I met such problem after the version code changed. I'm now running on Chrome as an alternative. |
@mko15 how do you "add permission"? I'm interested and I wanna to try it. |
Well, I'm not a really skilled programmer that I cannot dive deep into Flutter's source code to fix such bug.
|
For me, macOS had a popup asking me to give VS Code the ability to modify other apps when I tried to hot reload (and it worked afterwards). So this is something which can be allowed by the user, but not sure how to grant this permission without the popup. |
Thanks a lot @KevinBrendel , I found a solution inspired by your words: On macOS Sonoma, open System Settings > Privacy & Security > Full Disk Access, and allow for your code editor (such as VSCode or Android Studio) or the terminal, and then it can hot reload and hot restart. @mko15 , maybe you can try it. Sorry for taking your time @darshankawar , but I still recommend to add some mentions into official docs to let people know there might be such problem and how to solve it. |
Yep, it works :) Thank you @aprosail |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
pub spec.yaml
changed, it cannot hot reload or hot restart.1.0.0+1
) again, it still not cannot work.Expected results
In the previous versions, I can easily hot reload or hot restart whatever version code I have.
But in this version, once version code changed, it cannot hot reload or hot restart.
Actual results
Followings are the exception output:
I think that might be a conflict with Apple's security strategies, that macOS will block Flutter from command line
to modify such application when something changed.
Code sample
It's just the same as the template.
Code sample
Screenshots or Video
No response
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: