Undefined symbols for architecture x86_64 flutter Undefined symbols for architecture x86_64 flutter flutter flutter

Undefined symbols for architecture x86_64 flutter


Probably the error is on some of the XCode project files, try:

  1. Make a backup of your project.
  2. Run this command

    flutter clean && \rm ios/Podfile ios/Podfile.lock pubspec.lock && \rm -rf ios/Pods ios/Runner.xcworkspace && \ flutter run

Reference


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.

  1. On project/ios folder, run pod deintegrate && rm Podfile.lock && pod install
  2. On your project folder, run flutter clean
  3. Clear the Xcode derived data by running rm -rf ~/Library/Developer/Xcode/DerivedData
  4. Open the project with Xcode and also clean by doing Cmd + Shift + K
  5. Build with flutter build ios command.