UE4 can't detect Xcode

Hi I’ve installed Xcode through App store on my mac. And I installed UE4 through the Epic Game Launcher.
And it keeps saying it can’t find Xcode.

My mac version is: 10.14.6.

From the first image you can see I’ve installed my UE4 folder at the shown path. But it still can’t detect Xcode when I try to create a game.
And from second image, you can see I’ve installed Xcode in my /Applications folder.