Skip to content

Instantly share code, notes, and snippets.

@vbalagovic
Created November 30, 2022 16:02
Show Gist options
  • Save vbalagovic/34fd4af246329a1c38b186316766daac to your computer and use it in GitHub Desktop.
Save vbalagovic/34fd4af246329a1c38b186316766daac to your computer and use it in GitHub Desktop.
Switching between multiple flutter versions and projects can cause issue (or project upgrade) this commands will clean your project to run again.
rm -Rf ios/Pods && \
rm -Rf ios/.symlinks && \
rm -Rf ios/Flutter/Flutter.framework && \
rm -Rf ios/Flutter/Flutter.podspec && \
rm -rf ~/.pub-cache && \
fvm flutter pub get && \
cd ios && fvm flutter precache --ios && pod install --repo-update && cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment