iOS simulator stopped working

Hi, I’m up to chapter 5 in the flutter apprentice book. iOS simulator suddenly stopped working, it comes up with:

Error: To set up CocoaPods for ARM macOS, run:
sudo gem uninstall ffi && sudo gem install ffi – --enable-libffi-alloc

Error running pod install
Error launching application on iPhone 14.

It was working fine just moments earlier.

I did the: ‘sudo gem uninstall ffi && sudo gem install ffi – --enable-libffi-alloc’
in the terminal but did not solve the issue.

I also ran ‘flutter doctor’ in the terminal and ‘No issues found!’

I checked in other flutter projects in android studio and the same issue occurs.

The app runs fine on the android emulator.

I know this is not directly related to book content, but the reason I’m learning flutter is that it would work across the android & iOS platforms.

Any idea what I can do to make iOS simulator work?

Thanking you in advance

I also opened it in iOS module and Xcode could not open it: ‘Module ‘path_provider_ios not found’’

Ignore this message, I’m starting a new project for chapter 5.

Before you start over, maybe try closing out of Xcode and Simulator and trying again?

@zwolf71 I ran into this issue late last year. Do you have an M1? Have you made any macOS or Xcode app updates?