After updating to XCode 13, I keep getting this error randomly while building/running the project.
error: input file R.generated.swift was modified during the build
The error goes away after cleaning the project and building/running, but after a couple of builds/runs the error happens again.
Any ideas what's wrong and how to fix this?