How can I get unreal to work with Xcode?

I’m having a lot of trouble with getting unreal to work with Mac OS X 10.15.6.

Every time I try to make a project, unreal returns an error saying that I need to install Xcode first. The editor for a new project will not let me make a project until this error is cleared.

I’ve googled a few issues that could lead to this and found this:

But this solution didn’t help.
Is there anything else I can try?