I am using mac mini M1 chip. I have managed to install cocoapods using arch -x86_64 sudo gem install cocoapods
and done pod install using arch -x86_64 pod install
everything went well. But when I run my flutter project in xcode12. First i had got a non-zero exit error I have managed to solve it by removing the run script scripts. Then after flutter clean
and pod install
I got the error as below
ios/Runner/GeneratedPluginRegistrant.h:10:9: error: 'Flutter/Flutter.h' file not found #import <Flutter/Flutter.h>