Why Doesn't UE4 detect Xcode on Mac

Dear Epic Games,

So I finally finished my Beta version for a Game but It isn’t packaging because it can’t detect Xcode but I have recently downloaded Xcode version 9.2 and my UE 4.18 just can’t detect it. Please hurry and try to find the solution to the problem. BTW Xcode is in My Applications folder so its where its supposed to be.

P.S PLEASE HURRY

Never Mind I just had to restart my UE4 It was still opened when I installed it

Hi, I just found answer for this problem.

just do type in ‘terminal’

sudo xcode-select -r

It is command to reset xcode command line tools. I solve with this line.

I hope that this would be help for future someone who suffering same problem.

Yes this worked for me too. for more details on why read this line

Essentially at some time, the default path got set wrong on your system and unreal looks for the app in the default path. This command resets it to the default.

Execture this command to see if it is set wrong and after using the sudo -r execute it again.
$ xcode-select -p
If you see:

/Applications/Xcode.app/Contents/Developer

Awesome! Thank you, this saved the day. “sudo xcode-select -r” worked for me (Xcode 11 + UE4.24)

just throwing it out there, depending on what youre doing, you dont even need xcode anymore UNREAL ENGINE 4 TUTORIAL: HOW TO PACKAGE FOR IOS AND UPLOAD TO TESTFLIGHT WITHOUT XCODE - YouTube

@viceversa, thanks for the video, it’s good to know.
Looks like I still need Xcode for writting C++ with UE4 but that’s alright though. I’m an experienced C++ developer and I’m also very familiar with Xcode. It’s just that I’m a total UE4 newb :wink: