Cooking Failed: logshaders: metallib failed with code 1: LLVM Error : SF Metal SM5

In my experience, this message is a complete red herring. I chased it for a while, but ended up re-creating my Xcode project then opening it, which prompted me for some component updates, then re-built the game project. Once that was done, this error just went away.

/Users/Shared/Epic\ Games/UE_5.2/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh -project=“.uproject” -game -XCodeProjectFiles