I would like to override the default Xcode Metal compiler behaviour of compiling all project .metal files into a single default.metallib and instea
.metal
default.metallib
I achieved this in two steps:
1) Add a custom build rule for .metal files that compiles them individually into .metallibs:
.metallib
2) Add a custom build step for copying those .metallibs into your target: