If you have trouble when installing the Flutter at the first time Following solutions could safe your days
Fix issue build with MacOS 13 - Xcode 15 - iOS 17
Follow the steps below:
- Update Xcode by following the instructions below: https://monosnap.com/file/wAtUmGguvGn1o5Iuabs6leTowv0Sps
- Upgrade library in pubspec.yaml:
- flutter_inappwebview : https://monosnap.com/file/D2hK5K30pkgEeFHmFI7VVSsIjn5MJC
flutter_inappwebview: git: url: https://github.com/vixez/flutter_inappwebview.git ref: fix-xcode-17
- flutterwave_standard: https://monosnap.com/file/ikCyqMMWN6Lq81sqtthgWpCnX84PIU
flutterwave_standard: git: url: https://github.com/inspireui/Flutterwave ref: fix-xcode-15
- run comment in terminal project:
rm -rf ios/Pods rm -f ios/Podfile.lock rm -f pubspec.lock rm -rf ios/.symlinks flutter clean flutter pub get cd ios && pod deintegrate && pod install && pod update && cd ..
If you are having trouble building the FluxStore source code and are receiving a warning message that says "
please provide your purchase code in configs/env.xx" try the following
- First, double check the
envatoPurchaseCodelocated in the configs/env.props file and make sure it matches the license key file. You can find more information about where to locate your purchase code in this Where is My Purchase Code? article.
- If you previously activated your license key on an old domain site and are now trying to run it on a new domain site, you may encounter issues. To resolve this, log in to your Wordpress site, go to MStore API, and select "Deactivate" next to the license key, or select "Deactivate" from the FluxBuilder app.
- If the above solutions do not work, please submit a support ticket at https://support.inspireui.com/.
Follow this guide:
Command not found: flutter
The flutter command is needed for every important action related to Flutter, such as: Running the app Updating the dependencies Determining you installation's status (flutter doctor) ... However, if there is a problem with the executable, you might get the error: Let's clarify the root cause of the error, what you need to know about the $PATH variable and how to debug the issue.
Build fail on Android with error “Flutter Execution failed for task ':stripe_android:compileDebugKotlin'. Android stripe integration”
Solution: go to android folder and run
./gradlew clean assembleDebug
This error sometime happen when you upgrade the macOS version, then the visual studio or IntelliJ not able to find the path or associated plugin or extension.
- Run this script to reinstall the cocoapods, the restart the IDE or Editor
sudo gem uninstall cocoapods && sudo gem install cocoapods
- Or, Reinstalling the flutter extension on visual code fixed this
- On Android Studio, "Invalidate Caches / Restart.."
- Refer to similar solution - https://stackoverflow.com/questions/62593939/cocoapods-not-installed-or-not-in-valid-state
If the solution does not work, please check solution #5 below
6.1. - Getting many warning when build the app on XCode
- Make sure to use latest Android SDK Command-line Tools
- After install restart the Android Studio, and run
I could not build on my MacBook Pro or Mac Mini with Apple M1 Chip (use for first generate M1, M1 Pro, or M1 Max) due to the CocoaPods and Ruby version issues, for example: you could not run
pod install from the ios folder
Solution 1 - using Cocoapods from brew
- When running flutter doctor it return the
Pod is not installing
✅ Fixed by remove the Pod and reinstall by using brew
# Uninstall the local cocoapods gem sudo gem uninstall cocoapods # Reinstall cocoapods via Homebrew brew install cocoapods
- If the brew is not recognized (check brew version
brew -v) after install from https://brew.sh - edit the file
vim .zshrcand make sure the Path is correct as below
// file .zshrc from user root folder (Users/[name]/.zshrc export PATH=/opt/homebrew/bin:$PATH export PATH=/Users/minh/flutter/bin:$PATH
Solution 2 - using
Follow this guide to install latest Ruby 3.x
The fastest and easiest way to install Ruby on a Mac in 2022
Stop struggling with Ruby. Run a single command that will set everything up for you, so you can finally install Rails, Jekyll, cocoapods, fastlane, or any gem.
After install, you could check ruby version by run
sudo gem install cocoapods (this will install new Pod to match with new ruby version)
which pod and
which ruby (copy the ruby path to paste to
/usr/local/bin/pod file) to check if the pod and ruby is loaded from the correct path
2. You could also run
sudo vim /usr/local/bin/pod to update the path for ruby - https://tppr.me/xDZCp instead of using default Pod from macOS
Scroll jumping issue when scroll the app on M1 chip
Install Rosetta, ref this guide
sudo softwareupdate --install-rosetta --agree-to-license
Right Click XCode to Show Package Content >
Content > Developer > Applications > Click
Get Info and Check the
Open using Rosetta
ERROR ITMS-90086: "Missing 64-bit support. iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK or later. We recommend using the default "Standard Architectures" build setting for "Architectures" in Xcode, to build a single binary with both 32-bit and 64-bit support.
This issues cause by not run the ios builder before Archive the app.
flutter run build ios /// then open XCode and archive the app
This issues sometime happen when switching the master channel ↔ stable channel, that cause mismatch Flutter Pod library..
👉 2.1 - Solution #1:
- Remove ios/Flutter/Flutter.podspec:
flutter pub cache repair
- Run your app again.
👉 2.2 - Solution #1:
Created a new app with
flutter create my_app, deleted everything from
ios/Flutter in my own app and copied everything from my_app/ios/Flutter back again in my own app. You may see some difference on the Flutter.podspec
bitcode bundle could not be generated because '.../ios/Flutter/Flutter.framework/Flutter' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '.../ios/Flutter/Flutter.framework/Flutter' for architecture armv7
Make sure to meet the requirements:
- Use the latest XCode.
- Pass all issues from
- Run the project direct from Android Studio or VS Code, and make sure to run
flutter pub get
- Clean Pod cache:
- Remove the following files and folders, see screenshot
- Go to iOS folder: remove
- Open terminal (at iOS folder) and run:
pod cache clean --all pod deintegrate pod repo update pod update pod install
When running the VS Code, you could not run the Flutter project
This issues cause by Flutter cache, just simple clean up the cache
flutter clean // restart the VS Code, then run flutter pub get