M1 Mac Flutter Error

M1 Macにてflutter build時にエラー.
ffiのLoadErrorっぽい.

flutter clean

rm -Rf ios/Pods

rm -Rf ios/Podfile

rm -Rf ios/Podfile.lock

flutter pub get

sudo arch -x86_64 gem install ffi

arch -x86_64 pod repo update

arch -x86_64 pod install

これで解決かと思っていたが,,,まだエラーの場合はxcodeのバージョンアップをしたら解決した...