I have the latest Xcode version installed (5.1), but it seems UE4 can’t find it. I can’t add any code to the project neither use a code template (“No compiler was found. In order to use a C++ template, you must first install Xcode”).
Our check for Xcode presence is very simple - we just check if /Applications/Xcode.app folder exists. Maybe you have Xcode installed somewhere else or renamed?
Are you still experiencing these issues? If so, please provide more information in the form of answering my previous questions. In the meantime, I’ll be setting this back to resolved for tracking purposes.
Thank you for that information. Are you getting the same error that the original poster was getting or are you getting something different? When does the error occur? Is it when you try to open the .xworkspace file in XCode or when you try to open the project itself?
I’m not sure if it’s how Rakesh fixed the issue, but taking a page from Silkentrance, I used xcode-select -p to determine that my default directory was not /Applications/Xcode.app but something like Library/Developer/CommandLineTools. I then used xcode-select --reset to revert back to default, which realigned my default directory to /Applications/Xcode.app/Contents/Developer which, after restarting the UE4, worked perfectly. Hope this helps.
This answer from JohnnyDStar fixed my issue: "
I’m not sure if it’s how Rakesh fixed the issue, but taking a page from Silkentrance, I used xcode-select -p to determine that my default directory was not /Applications/Xcode.app but something like Library/Developer/CommandLineTools. I then used xcode-select --reset to revert back to default, which realigned my default directory to /Applications/Xcode.app/Contents/Developer which, after restarting the UE4, worked perfectly. Hope this helps."
So, use these two calls in a Terminal Window on Mac OS X:
xcode-select -p (shows current Xcode location path, in case there is more than one)
xcode-select --reset (resets path to default location of “/Applications/Xcode.app/”)
xcode-select -p (confirms new location)
Thanks, JohnnyDStar
Jimbo
details:
Mac OS X (10.14.5 (Mojave)
Xcode v10.3 (10GB)
Unreal 4.22.3
This note comes up in the lower right-hand corner of the screen:
Xcode was not detected on this Mac.
Metal shader comilation will fall back to runtime comiled text shaders, which are slower.
…
I have XCode 10.3, the latest installed in /Applications/Xcode.app/
What else do I need to do?
I’m having the same issue. Unreal comes up with Xcode was not detected on this Mac
Metal Shader compilation will fall back to runtime compiled text shaders, which are slower.
Please install latest version of Xcode for best performance
and make sure it’s set as default using xcode-select tool.
Not sure how I do that last bit.
Would love any assistance to understand what might be going wrong.
details:
Mac OS X (10.14.5 (Mojave)
Xcode v10.3 (10GB)
Unreal 4.22.3
On Unreal Launch, this note comes up in the lower right-hand corner of the screen:
I’m having the same issue. Unreal comes up with Xcode was not detected on this Mac
Metal Shader compilation will fall back to runtime compiled text shaders, which are slower.
Please install latest version of Xcode for best performance
and make sure it’s set as default using xcode-select tool.
Not sure how I do that last bit.
Would love any assistance to understand what might be going wrong.
I do not see any Xcode env variables in the terminal, so no help there.
I have this same issue, tried all solutions above but didn’t work.
My path from xcode-select -p shows (/Applications/Xcode.app/Contents/Developer)
and indeed when I go to that path there xCode is there.
I am running MacOS Catalina 10.15.6, unreal engine 4.17.2-3658906 installed from epic games launcher.
The message I get is… Xcode installed on this Mac cannot be used for Metal shader compilation. Falling back to runtime compiled text shaders, which are slower. Please install xCode 8.3.x for best performance.
I do have homebrew installed on my system in case that is affecting it somehow as some posts have said but I’m not sure how it would or how to fix it if so.
I have this same issue, tried all solutions above but didn’t work.
My path from xcode-select -p shows (/Applications/Xcode.app/Contents/Developer)
and indeed when I go to that path there xCode is there.
I am running MacOS Catalina 10.15.6, unreal engine 4.17.2-3658906 installed from epic games launcher.
The message I get is… Xcode installed on this Mac cannot be used for Metal shader compilation. Falling back to runtime compiled text shaders, which are slower. Please install xCode 8.3.x for best performance.
I do have homebrew installed on my system in case that is affecting it somehow as some posts have said but I’m not sure how it would or how to fix it if so.