I kinda have a solution for you, but it's not perfect.
Open your project in Xcode. Select the .metal file that's giving you trouble. If you go into File Inspector (View -> Inspectors -> File). There you can either uncheck all the targets under Target Membership
so that Xcode doesn't try to build it at all. Or you can also try and change it's Type
to like a text file or something.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…