Metal Shader Library - invalid UUID

Hi,

I am generating a Metal library that I build using the command line tools on macOS for iphoneos, following the instructions here.

Then I serialise this to a binary blob that I load at runtime, which seems to work ok as everything renders as expected. When I am doing a frame capture and open up a shader function it tries to load the symbols and fails. I tried pointing it to the directory (and the file) containing the symbols file, but it never resolves those.

In the bottom half of the Import External Sources dialogue there is one entry in the Library | Debug Info section:

The library name is Library 0x21816b5dc0 and below Debug Info it says Invalid UUID.

The validation layer doesn't flag any invalid behaviour so I am a bit lost and not sure what to try next?

Replies

Build your shaders with -mios-version-min=12.0 . This seem to happen when the minimum version is too low.