I found a workaround, if you have an M series Mac, you need to run Xcode in Rosetta mode.