I don't really know the terminology around this very well, but I was trying to test my Mac OS Catalyst app on Mac OS Sequoia, and the app kept crashing apparently due to MTL validation. I was trying to debug why using a menu (as in File, Edit, View, etc.) would crash. The stack looked roughly like this:
6 -[MTLDebugComputeCommandEncoder setBuffer:offset:attributeStride:atIndex:] MetalTools
5 _CF_forwarding_prep_0 CoreFoundation
4 ___forwarding___ CoreFoundation
3 -[NSObject doesNotRecognizeSelector:] CoreFoundation
2 objc_exception_throw libobjc.A.dylib
1 __cxa_throw b
0 _Unwind_RaiseException libunwind.dylib
Both Claude and Gemini indicated that there was no flaw in my code, but rather that Xcode was responsible. Sure enough, unchecking the MTL validation checkbox in Xcode stopped the crash from happening.