I have an App,use Metal-api, it worked well at Xcode12, but when I upgrade Xcode13.0,things changed, it always crash at newFunctionWithName.
How do I get my metal library:
- My app is multiple-render-backend, so my shader is
.glsl, useglslangValidatorturn it to.metal - get metallib,refrence : Building a Library with Metal's Command-Line Tools,
- use
dispatch_data_createto load metallib, and callnewLibraryWithDatato get MTLLibrary, then callnewFunctionWithNameto get MTLFunction , crash here.
Because it's my company's code,so SORRY, I can't share the code or screenshot.
The same code, worked on Xcode11 and Xcode12,but crash at Xcode13.0 when use Xcode to debug.
Xcode13.0: crash at debug, but successfully run on independent or in Xcode-Instrument.
I have no clue, what should I do to solve this problem on Xcode13.0, or it's the bug on Xcode13.0? @Apple
ps: (that problem above occurred on x86_64-mac,macOS 11.5)