How to use the source version of UE4 to generate a game project using the binary version engine

If the XCode project is directly generated, the source code of the engine will be included in the project; I hope that the generated XCode project only contains the game source code and the necessary lib or other binary files for UE4