(Xcode): Command SwiftEmitModule failed with a nonzero exit code

Hello! I'm trying to flutter run my app but I get this error (Xcode): Command SwiftEmitModule failed with a nonzero exit code

So far I've tried:

  • rm -rf ios/Pods ios/Podfile.lock
  • flutter clean && flutter pub get
  • clean xcode workspace
  • reinstall xcode

None of the solutions actually work.

Xcode: Version 16.2 (16C5032a)

(Xcode): Command SwiftEmitModule failed with a nonzero exit code
 
 
Q