Material Fatal error Mac Xcode 9.2

When compiling any material i get this error UE 4.18.2 , xcode 9.2

LogShaderCompilers: Warning: /Users/Shared/Epic Games/UE_4.18/Engine/Content/EditorMaterials/AssetViewer/M_SkyBox.uasset: Failed to compile Material for platform SF_METAL_SM5, Default Material will be used in game.
LogShaderCompilers:     /tmp/13671_2471286418.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_11323578694557174BFFB3187C02FFDD1FEA6808C9FF8
8FEA28EFmetalfe-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 err0r generated.

同样的问题 ,还是 电脑操作系统的问题吧,你的也是10.13吧

yes osx 10.13

change your project setting-Max Metal Shader Standard To Target with Metalv2.0 will done

This fixed for me. MacOS 10.13 with Xcode 9.4.

I’m having the problem mac OS Mojave 10.14.2 Version 10.1 (10B61). I adjusted the settings as suggested, but now UE editor can’t open up my project. It just keeps getting stuck at 35% and crashing. I don’t know if it matters, but I had followed the instructions on this post Unreal Engine inaccurately reports "XCode is too old" when CommandLineTools installed - Platform & Builds - Unreal Engine Forums - is that related to the problem I am having now? Any suggestions?

I’m getting this same issue (crash at 35%), and I’ve never gotten any “Xcode too old” error.
For me, my output log errors look slightly different from the original question, like this:
LogShaderCompilers: Warning: /Users/nantuk/Epic Games/UE_4.18/Engine/Content/EditorMaterials/Thumbnails/FloorPlaneMaterial.uasset: Failed to compile Material for platform SF_METAL_SM5, Default Material will be used in game. LogShaderCompilers: /tmp/12370_1902970301.metal(0): Failed to load output file: /tmp/ShaderIn509DB8D7BB4646B4438234AAFF2EF739

which also result in me having to sit waiting for “Compiling Shaders (4000)”