GENERATED_USTRUCT_BODY() throws an error in Xcode

I’m trying to create a simple struct in my actor header file that was just freshly created in unreal editor using the
“add code to project” menu:

USTRUCT(BlueprintType)
struct FDamage
{
    GENERATED_USTRUCT_BODY()
    
public:
    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Damage)
    double damage = 0;
    
};

but whenever I add GENERATED_USTRUCT_BODY() to my struct, Xcode gives me this:

43540-screenshot+2015-05-20+22.47.13.png

If I comment out GENERATED_USTRUCT_BODY() Xcode doesn’t report any syntax errors, but won’t compile obviously due to needing GENERATED_USTRUCT_BODY() . I’m running OSX 10.10.3, Xcode 6.3.2 and UE 4.7.6 (all latest). Why is Xcode giving me this error?

If it helps, here are the full cpp and header files (literally just created with the unreal editor)

Weapon.h:

Weapon.cpp (untouched):

43552-screenshot+2015-05-20+22.56.18.png

Hello, leftyfl1p

Please note that there is possibility that this error is false-positive.

Nevertheless, you should still be able to compile the code as long as your Weapon class from editor was added successfully.

Hope this helped!

Good luck!

I could have sworn I tried this already. It worked however. Thank you!