Hi Semion,
I can recognise that you are unable to use the Rapid Accelerator mode in Simulink due to the error mentioned above.
This error seems to be caused due to some issue in installation of Xcode on your mac.
To fix it, point Xcode-select to the Xcode app Developer directory using the following command: (This worked with MATLAB R2022a for me)
sudo xcode-select -s /Applications/Xcode11.3.1.app/Contents/Developer
(Make sure the Xcode app path is correct.)
There is a similar stack overflow thread for this issue, you can check it out from the link attached here:
I hope this helps, thanks!