I have updated xcode to 12.3, i am getting the new errors.
Another workaround is to set BuildSettings ->"Validate Workspace" to Yes. It will still show a warning, but will build the project.