That error is consistent with not having the Xcode command-line tools install. The ordinary solution is to run: xcode-select --install
before the build.
I do not know if this has something to do with Xcode 12 or with CircleCI’s image. Maybe try inserting that command towards the beginning of your pipeline.