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 ..
10. Issue: please provide your purchase code in configs/env file
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
Solution:
First, double check the envatoPurchaseCode located 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.
Solution: go to android folder and run ./gradlew clean assembleDebug
7. CocoaPods not installed or not in valid state
β
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.
Solution/Answer
Run this script to reinstall the cocoapods, the restart the IDE or Editor
If the solution does not work, please check solution #5 below
6. Some common question on latest Flutter
β
6.1. - Getting many warning when build the app on XCode
Solution/Answer
Make sure to use latest Android SDK Command-line Tools
After install restart the Android Studio, and run pub get and flutter doctor
5. M1 Chip issue on MacOS π₯
β
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 .zshrc and 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
After install, you could check ruby version by run ruby -v
Then run sudo gem install cocoapods (this will install new Pod to match with new ruby version)
π₯
1. Run 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 /Users/[name]/.rubies/ruby-3.1.1
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
Right Click XCode to Show Package Content > Content > Developer > Applications > Click Get Info and Check the Open using Rosetta
4. Missing 64 bit on XCode
β
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.
Solution/Answer
This issues cause by not run the ios builder before Archive the app.
flutter run build ios
/// then open XCode and archive the app
3. "Flutter/Flutter.h not found." on iOS.
β
This issues sometime happen when switching the master channel β stable channel, that cause mismatch Flutter Pod library..
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
2. iOS Build failed
β
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
Screenshot
Solution/Answer
Make sure to meet the requirements:
Use the latest XCode.
Pass all issues from flutter doctor
Run the project direct from Android Studio or VS Code, and make sure to run flutter pub get