Crash in macOS standalone (URP) using Immediate Mode

Avatar

When I make a standalone macOS build (URP) that uses Immediate Mode shapes, I see a Metal crash immediately.

I suspected the shader simply wasn't in the build, and that seems to be the case, similar to:

https://shapes.userecho.com/en/communities/1/topics/192-immediate-mode-drawline-not-appearing-in-standalone-build

So the same workaround works: keep all Instancing Variants in the Shader Stripping settings. Another workaround is to simply include a Shapes object (non-IM) in the scene. But it'd be nice to not need these workarounds.

Thanks for the great asset!

Reporting a bug? please specify Unity version:
2021.2.15f1
Reporting a bug? please specify Shapes version:
4.1.3
Reporting a bug? please specify Render Pipeline:
URP