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:
- Install newest version of Flash
- Restart your Mac
- Open terminal and insert this code: xcode-select –install
- Open terminal and insert this code: sudo xcode-select –reset
After doing the following I was able to install Flutter properly.
I’m fascinated by consumer behaviour. I take an interest in discovering how digital marketing campaigns can improve consumer satisfaction. My aim is to provide consumers the ideal platform for ultimate results. I use digital analytics to accomplish that and the most interesting fact is that I’m still learning.