I got the following error:
Command CompileSwiftSources failed with a nonzero exit code
I updadted it to Monterey , and using xcode 13.2.1
I tried clean and rebuild
I deleted the derivedData folder
still face the error:
Command CompileSwiftSources failed with a nonzero exit code