Compilation problem using fenicsx-0.6.0 with anaconda

Hello, I have installed fenicsx-0.6.0 with anaconda but I got the error message (copied below) compiling the code below. Would someone know how to solve this issue?
Thanks in advance,

import ufl
from dolfinx import fem, io, mesh, plot, geometry
from mpi4py import MPI
from petsc4py.PETSc import ScalarType

domain = mesh.create_rectangle(comm=MPI.COMM_WORLD,
                            points=((0.0, 0.0), (2.0, 1.0)), n=(32, 16),
V = fem.FunctionSpace(domain, ("Lagrange", 1))

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Traceback (most recent call last):
File “/opt/anaconda3/envs/test/lib/python3.10/site-packages/setuptools/_distutils/”, line 188, in _compile
self.spawn(compiler_so + cc_args + [src, ‘-o’, obj] + extra_postargs)
File “/opt/anaconda3/envs/test/lib/python3.10/site-packages/setuptools/_distutils/”, line 1041, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File “/opt/anaconda3/envs/test/lib/python3.10/site-packages/setuptools/_distutils/”, line 68, in spawn
raise DistutilsExecError(f"command {cmd!r} failed with exit code {exitcode}")
distutils.errors.DistutilsExecError: command ‘/usr/bin/clang’ failed with exit code 1

One issue is definitely

I am no macos user, so I wouldn’t know how to install it myself. Please search on the web how to install it, for instance see missing xcrun at: /Library/Develop… | Apple Developer Forums