Configuring a workable flutter for iOS app development on the apple silicon Mac is really painful. I declare I am not an apple fan any more.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
brew install rbenv ruby-build
rbenv init
rbenv install 3.2.2
rbenv global 3.2.2
rbenv local 3.2.2
sudo gem update --system
sudo gem install cocoapods
cd <proect_dir/ios>
pod deintegrate
pod install
pod repo update
rm Podfile
rm Podfile.lock
rm -rf Pods
cd <project_dir>
flutter pub get
flutter pub outdated
flutter build ios