Undefined symbols for architecture x86_64 flutter
Probably the error is on some of the XCode project files, try:
- Make a backup of your project.
Run this command
flutter clean && \rm ios/Podfile ios/Podfile.lock pubspec.lock && \rm -rf ios/Pods ios/Runner.xcworkspace && \ flutter run
This is often a dependency resolution issue due to existing caching. If you can't build for iOS, regardless of the plugin's version, do the following steps.
Note: It's recommended that you do this every now and then and it also gets rid of a lot of used space on your machine.
- On
project/ios
folder, runpod deintegrate && rm Podfile.lock && pod install
- On your project folder, run
flutter clean
- Clear the Xcode derived data by running
rm -rf ~/Library/Developer/Xcode/DerivedData
- Open the project with Xcode and also clean by doing
Cmd + Shift + K
- Build with
flutter build ios
command.