Skip to content

Instantly share code, notes, and snippets.

@codxse
Last active February 6, 2020 10:13
Show Gist options
  • Save codxse/c6969bbbd793c15d73477d8c87fb4e0c to your computer and use it in GitHub Desktop.
Save codxse/c6969bbbd793c15d73477d8c87fb4e0c to your computer and use it in GitHub Desktop.
# Create Flutter Biolerplage app
# ===============================
flutter create <app name>
# Example:
# flutter create hello_rectangle
## Release app
================================
flutter build appbundle --target-platform android-arm,android-arm64
## Release app (legacy cmd)
================================
flutter build apk --release
flutter build apk --split-per-abi
## chek proguards
## only in android directory
================================
./gradlew build --stacktrace
flutter packages pub cache repair
# Reset ios android
================================
flutter create -i swift -a kotlin project_name
# iOS
================================
flutter build ios --release
cd ios
pod deintegrate
pod install
# Clean iOS
================================
go to ios folder
pod deintegrate
cd ..
flutter clean
go to ios folder
pod install
cd ..
flutter run
# duplicate symbols for architecture arm64
# https://github.com/flutter/flutter/issues/44305
================================
cd ios/
pod cache clean --all
pod deintegrate --verbose
pod setup --verbose
pod install --verbose
## podfile outdated
## https://github.com/flutter/flutter/issues/24641
===============================
rm ios/Podfile
## duplicate linker
## https://answers.unity.com/questions/819445/xcode-clang-error-linker-command-failed-with-exit.html
===============================
cd ~/Library/Developer/Xcode/DerivedData
v1.12.13+hotfix.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment