I had a similar situation on Mac OS, I resolved it by doing the following steps:
- Delete the Intermediate directory of my project.
- Right click on the uproject, click on Services then Generate XCode Project.
This will create the XCode project, you can then open it and build the project or re-launch Unreal Engine and open the project, it will ask you to build, click yes and it will build the project for you.