If you are using Flutter
like me and you just want to create a new release without running the project then just run flutter clean
and after this run flutter pub get
to install the dependencies and then install pods using cd ios && pod install && cd ..
and you should be good to go.
If it's still not working try to restart the X-Code, clean the X-Code cache using CMD+SHIFT+C
and you should be good to go.