can't get unreal to generate Xcode project it is greyed out?

So I am a total newbie to the unreal engine I am just starting but I am getting stuck not being able to generate an Xcode project in unreal because it is greyed out I’m not sure exactly what to do to fix it I have tried uninstalling unreal and reinstalling I have also done that with Xcode I have even tried different versions of Xcode and nothing seems to fix the issue. Has anyone else experienced this issue? And if so I would love to know what you did to fix it. Thanks