Linker Error: Undefined symbols for architecture x86_64 while packaging

Hey everyone,

I’m having some trouble while packaging a project on Mac. It compiles fine as dev editor on both Windows and Mac, and it packages fine on Windows, but the Mac is getting this error when packaging:


    [1/5] Link Dwarrows
     Undefined symbols for architecture x86_64:
     "_OBJC_CLASS_$_MTLCaptureManager", referenced from:
     objc-class-ref in UE4-MetalRHI.a(Module.MetalRHI.cpp.o)

I’ve tried adding MetalRHI, RHI, and RenderCore to my .Build.cs file and #include “MetalRHI.h” in the file that uses RHI, but neither helped.

Does anyone have an idea what else I could try?
Cheers!