no compiler was found. in order to use c++ code install Xcode? (UE5.6-5.7 Xcode 26.1.1)

I have had this issue for months now on my m1 MacBook Air for ue5.5,ue5.6,ue5.7. I can’t add any c++ elements to any unreal projects, it just comes up with this error. “no compiler was found. in order to use c++ code install Xcode”.

I have uninstalled and installed Xcode, edited the max version in the appleSDK.json and done anything I could find other people have fixed related issues with, but non of them worked.

Has anyone experienced this lately and know of any solutions?