Flutter will not build on iOS with Firebase on M1 Mac

1,389

I had the same issue. Installed ffi and fixed:

arch -x86_64 sudo gem install ffi
Share:
1,389
RabbitHole24
Author by

RabbitHole24

Updated on December 28, 2022

Comments

  • RabbitHole24
    RabbitHole24 over 1 year

    I keep trying to build my Flutter app on iOS but I keep getting an error. I have tried everything. I imported my project from GitHub, where I uploaded it from Windows. I followed every step, and I added the iOS app on Firebase and now when wanting to compile I am unable, and very frustrated. Please help.

    objc[7346]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20d9f4188) and ?? (0x113d402b8). One of the two will be
        used. Which one is undefined.
        objc[7346]: Class AMSupportURLSession is implemented in both ?? (0x20d9f41d8) and ?? (0x113d40308). One of the two will be used. Which one
        is undefined.
        ** BUILD FAILED **
    
    
    Xcode's output:
    ↳
        /Users/davor/Developer/Projects/Explovid/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'cloud_firestore' not found
        @import cloud_firestore;
         ~~~~~~~^~~~~~~~~~~~~~~
        1 error generated.
        error: the following command failed with exit code 1 but produced no further output
        CompileC
        /Users/davor/Library/Developer/Xcode/DerivedData/Runner-cnftrifzvgjcpyadycxyixuvtnnj/Build/Intermediates.noindex/Runner.build/Release-ipho
        neos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o
        /Users/davor/Developer/Projects/Explovid/ios/Runner/GeneratedPluginRegistrant.m normal arm64 objective-c
        com.apple.compilers.llvm.clang.1_0.compiler
        note: Using new build system
        note: Building targets in parallel
        note: Planning build
        note: Constructing build description
    
    Encountered error while building for device.
    
    
    • Charlie Fish
      Charlie Fish about 3 years
      Have Flutter and Firebase even been updated to support M1 Macs?