Flutter Installation Bug

I created this thread because I experienced an error while trying to install Flutter on macOS Catalina.

Eventually I managed to overcome the bug and if you’re experiencing some issues with Flutter installation, you could try to follow these steps but remember to have a backup ready in case something goes wrong in the process.

ERROR: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Step 1: 

Instalation for macOS Catalina 

Followed instruction from: https://flutter.dev/docs/get-started/install/macos  

Open terminal and enter: /bin/zsh

Close terminal, reopen terminal and enter: echo $SHELL

If you see /bin/zsh you can continue!

Step 2: 

Open terminal and enter: vim ~/.zshrc

Hit i to insert text.

insert this code into terminal: export PATH=”$PATH:$HOME/Developer/flutter/bin”

Hit esc key and type :wq!

Close terminal and start a new session.

Run: flutter —version

* I GOT THIS ERROR: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

IF YOU GET AN ERROR AT THIS STAGE DO THE FOLLOWING:

  1. Install newest version of Flash
  2. Restart your Mac
  3. Open terminal and insert this code: xcode-select –install
  4. Open terminal and insert this code: sudo xcode-select –reset

After doing the following I was able to install Flutter properly.

Leave a Reply

Your email address will not be published. Required fields are marked *