OSX linker error while packaging: MTLCaptureManager

Steps to reproduce: create a new c++ project and build a mac version.
Tried with newly created projects, and the engine still returns the same error.
Error message:
alt text