Skip to content
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

Add export command to .zprofile to macOS install page for Mac Catalina or higher #5374

Closed
danielhrc opened this issue Mar 1, 2021 · 2 comments · Fixed by #9736
Closed

Add export command to .zprofile to macOS install page for Mac Catalina or higher #5374

danielhrc opened this issue Mar 1, 2021 · 2 comments · Fixed by #9736
Assignees
Labels
a.get-started Relates to the Getting Started section of docs.flutter.dev devos.macOS Relates to developing apps on macOS platform e1-hours Effort: < 8 hrs p2-medium Necessary but not urgent concern. Resolve when possible. ux.first-hour Relates to the user's first hour experience with Flutter

Comments

@danielhrc
Copy link

The problem

I had a problem installing flutter at my Macbook Air 2017 (OS version = Big Sur).

Step by step to reproduce

  • After doing exactly equal as the installing documentation, I restarted the computer
  • tried to run flutter doctor
  • Terminal was logging command not found

The Solution

  • I googled some solutions and I found that Mac Catalina or Higher requires Full Disk access to Terminal to get Flutter working, but I have no evidence it works (Anyway, I allowed this in preferences).
  • I found out that Mac Catalina or higher uses zsh with a .zprofile (not .zshrc nor .zshenv etc).
    Then I added this to the .zprofile:
    export PATH=$HOME/FLUTTER_DIR/flutter/bin:$PATH

AND..... IT WORKS!

Proposal

Consider adding a note at Get Started Documentation.

Best regards.

@sfshaza2
Copy link
Contributor

sfshaza2 commented Mar 4, 2021

@danielhrc, the macos install page mentions editing the .zshrc file. That didn't work for you?

@sfshaza2 sfshaza2 added e1-hours Effort: < 8 hrs p2-medium Necessary but not urgent concern. Resolve when possible. ux.first-hour Relates to the user's first hour experience with Flutter labels Mar 4, 2021
@danielhrc
Copy link
Author

@sfshaza2 it didn't work - then I tried editing every .z file and restarting the notebook after every edit.
The only that worked was .zprofile

@atsansone atsansone added a: install devos.macOS Relates to developing apps on macOS platform labels Sep 30, 2022
@atsansone atsansone added the a.get-started Relates to the Getting Started section of docs.flutter.dev label May 17, 2023
@atsansone atsansone changed the title [Documentation] Installing in Mac Catalina or higher Add export command to .zprofile to macOS install page for Mac Catalina or higher Jun 2, 2023
@atsansone atsansone self-assigned this Jun 20, 2023
atsansone added a commit that referenced this issue Dec 21, 2023
Total refactor of macOS install.

Fixes #2461
Fixes #2529
Fixes #4995
Fixes #5374
Fixes #7475
Fixes #7647
Fixes #9520

---------

Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.get-started Relates to the Getting Started section of docs.flutter.dev devos.macOS Relates to developing apps on macOS platform e1-hours Effort: < 8 hrs p2-medium Necessary but not urgent concern. Resolve when possible. ux.first-hour Relates to the user's first hour experience with Flutter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants