When starting Visual Studio Code Flutter project if we are getting this error Unable to resolve your shell environment: Unexpected exit code from spawned shell (code 9, signal null) means some environment variable defined in the .zshrc is causing this. In my case I have export NODE_OPTIONS=--openssl-legacy-provider added. Commenting out this line fixed this issue. Not able to resolve shell environment will also give issues with running iOS app as resolving CocoaPods fails. Running iOS app fails with CocoaPods not installed. Skipping pod install. error.