This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Temporary solution to fix pod errors while installing Flutter dependencies for a Flutter macOS app. | |
# Usage: | |
# 1. Open your terminal. | |
# 2. Before running `flutter pub get`, source the environment variables: | |
# $ source ~/.podfile # Adjust the path to the actual location of this script if needed. | |
# 3. Then run: | |
# $ flutter pub get | |
# Set environment variables to fix pod errors | |
export LANG=en_US.UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -au | |
# Check cellar dir | |
cellarDir=$(brew --prefix)/Cellar | |
if [ ! -d "$cellarDir" ]; then | |
echo "Not found. brew package path $cellarDir :(" | |
echo | |
exit 1 |