JUCE samples crash after rendering UI

Trying to run fresh out-of-the-box JUCE samples using Projucer 7.0.9 and Xcode 15.2 always crash after the UI has been generated and show exception:

Exception NSException * “-[BronzeMtlRenderCmdEncoder setVertexBuffer:offset:attributeStride:atIndex:]: unrecognized selector sent to instance 0x7f7a1103b000” 0x0000600000b55c50
name __NSCFConstantString * “NSInvalidArgumentException” 0x00007ff8428d15e8
reason __NSCFString * “-[BronzeMtlRenderCmdEncoder setVertexBuffer:offset:attributeStride:atIndex:]: unrecognized selector sent to instance 0x7f7a1103b000” 0x00006000034ec780
userInfo void * NULL 0x0000000000000000
reserved __NSDictionaryM * 1 key/value pair 0x0000600000576c80

Also seeing:
AddInstanceForFactory: No factory registered for id <CFUUID 0x6000005dafe0> F8BB1C28-BAE8-11D6-9C31-00039315CD46

Does anyone have any ideas how to resolve these issues?

This issue started occurring for me after installing OpenCore’s kernel patches for using a Metal-non-compatible GPU in macOS 14.

Reverting OpenCore kernel patches allowed Juce samples to execute without the error.

Thank you for responding. I’m using OpenCore too. That seems like the reason!

There’s a second option that will let you keep Open Core patches in place. Click on your project name in the toolbar, select Edit Scheme…, make sure Run is selected, then go to the Diagnostics tab. Deselect API Validation in the Metal subsection.

1 Like