Linker error with RTTI. Undefined symbol typeinfo

Im trying to compile for macos and am getting linker errors.

“typeinfo for UObject”, referenced from:
typeinfor for UMyClass in Module.MyPlugin.cpp.o

I am not sure why this is happening?