I’ve recently upgraded my project to UE4.11 and can no longer compile on OSX El Capitan with Xcode 7.3. I’m using the binary/launcher version of the engine.
Every file in my project generates the following error:
error: '_getUObject' marked 'override' but does not override any member functions
GENERATED_BODY()
^
Runtime/CoreUObject/Public/UObject/ObjectBase.h:593:29: note: expanded from macro 'GENERATED_BODY'
#define GENERATED_BODY(...) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,__LINE__,_GENERATED_BODY)
^
Runtime/CoreUObject/Public/UObject/ObjectBase.h:590:37: note: expanded from macro 'BODY_MACRO_COMBINE'
#define BODY_MACRO_COMBINE(A,B,C,D) BODY_MACRO_COMBINE_INNER(A,B,C,D)
^
Runtime/CoreUObject/Public/UObject/ObjectBase.h:589:43: note: expanded from macro 'BODY_MACRO_COMBINE_INNER'
#define BODY_MACRO_COMBINE_INNER(A,B,C,D) A##B##C##D
^
note: Expanded from here
MyProject_Source_MyProject_MyClass_h_14_GENERATED_BODY
^
note: expanded from macro 'MyProject_Source_MyProject_MyClass_h_14_GENERATED_BODY'
MyProject_Source_MyProject_MyClass_h_14_INCLASS_NO_PURE_DECLS \
^
note: expanded from macro 'MyProject_Source_MyProject_MyClass_h_14_INCLASS_NO_PURE_DECLS'
virtual UObject* _getUObject() const override { return const_cast<UMyClass*>(this); }
^