I'm also facing the issue after updating Xcode to 13.3. The project compiles and runs fine without any problem, but whenever I try to generate the Archive to upload to TestFlight, it is throwing this error:
"error: Abort trap: 6.
Remark: Incremental compilation has been disabled: it is not compatible with whole module optimization. Command CompileSwiftSources failed with a nonzero exit code."