Search code examples
fluttercocoapods

Can't build flutter project on macbook pro m1 due to podfile error


I am working on a flutter project which is built using flutter version 1.22. Recently I bought a MacBook m1. I am facing a worst-case that I couldn't build the project on MacBook. It's showing a long podfile error. This is happening for some firebase packages. Now I am totally stuck. Can not update my app which is live on App Store. If you have any idea or a solution, please help.


Solution

  • Please try below commands on M1 machine:

    sudo arch -x86_64 gem install ffi
    arch -x86_64 pod install