Failed to compile bytecode locally

Hi,

I have a new install of 4.18 via Games Launcher on a Mac running Sierra 10.12.6
And Xcode 9.1.

Just opening starter files, no materials will compile, and I get the following error. Can anyone assist?

MaterialEditorStats: Error: [SM5] /tmp/47932_3870232292.metal(0): Failed to compile to bytecode locally, code: 1, output: fatal error: file ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/lib/clang/802.1/include/metal/metal_stdlib’ has been modified since the precompiled header ‘/tmp/metal_stdlib_11323578694557174BFFB3187C02FFDD1FE
A6808C9FF88FEA28EFmetalfe-802.1.34-mmacosx-version-min_10.12-ffast-math-std_osx-metal1.2.pch’ was built
note: please rebuild precompiled header ‘/tmp/metal_stdlib_11323578694557174BFFB3187C02FFDD1FEA6808C9FF88FEA28EFmetalfe-802.1.34-mmacosx-version-min_10.12-ffast-math-std_osx-metal1.2.pch’
1 error generated.

there are same trouble in my ue4,and my version is high Sierra 10.13.2 and xcode 9.1 .

This error has messed with me for the past two months. It is hell. I can’t create any materials without them going grey, and most premade/imported materials turn grey as well-- in-editor and in-game. It affects everything. It’s the same in every project and in every level. I’ve downloaded older versions of UE4, and the same thing. I’m on High Sierra 10.13.1 and xcode 9.2.

(this isn’t an answer, it’s a comment, but I don’t know how to change it :'< )

I have that problem too. Running Sierra 10.12.6 with xcode 9.2 and Unreal 4.18.3 from the launcher

4.19 beta is running fine so i guess it’s unreal related but i already tried reinstalling 4.18 without success.

Did you guys ever find a solution for that?

Hi Everyone! the solution is installing Xcode 8.3 and thats all.
I had the same problem yesterday but i´ve been working for hours without problems. Best Regards.

Change maximum Metal shader support version from 1.x to 2.0 fixed the issue for me. I’m using MacOS 10.13 with Xcode 9.4.

Also curious to know if you ever found a solution. Also, is the problem by any chance related to this problem that I had? Unreal Engine inaccurately reports "XCode is too old" when CommandLineTools installed - Platform & Builds - Unreal Engine Forums