No compiler was found

I’m already install xcode and command tools for xcode,but when i create a C++ project,“No compiler was found.In order to user a C++ template,you must first install xcode.” is show on the bottom,thanks a lot

I’m having the same trouble with UE 4.8, fresh install on Yosemite with Xcode 6.3 and command line tools installed.

I’ve mitigated the problem by copying to the main applications folder.
It was located in a sub folder in “Applications”. Now UE works fine with C++ projects.

This kind of seems like a sloppy way of detecting whether a C++ compiler is present in the system.