I was getting this error when running a simulator. (Using MacBook M1 pro)
I trying to fix by adding i386 and arm64 to the exclude architect on Xcode but this error message still remain
the Xcode workspace setting pic
Thanks.
PS. Yesterday it was running properly without any error, but somehow when I save the code then run it again the error occurs.
CodePudding user response:
First, flutter clean and delete your podfile.lock and then goto your terminal and run those commands.
flutter pub get
Then, try this
cd ios && arch -x86_64 pod install && cd ../
CodePudding user response:
I just solved this by downgrade my flutter from 2.8.0 to 2.5.3
