I had the same problem and I installed cocoapods and it works now.
Just copy and paste this line to install cocoapods: sudo gem install cocoapods
Restart VSCode and terminals.
And then run your app.
I'm working on MAC with IOS (Iphone 13) emulator.