Today, I picked up a project that I’d been working on last night. It was working fine last night, but now it won’t compile. I have made no code changes or project changes since it last worked.
The error I get is:
/Users/Shared/UnrealEngine/4.4/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Services/BTService_BlueprintBase.h(69) : Expected an include at the top of the header: ‘#include “BTService_BlueprintBase.generated.h”’
I have not touch either of my BTTask classes in a few days.
In addition to this error, I get a a warning about an Intermediate folder, but that folder keeps coming back if I delete it, so I don’t think that’s an issue, but the warning concerns me because it references another project:
WARNING: UnrealBuildTool found an Intermediate folder while looking for rules '/Users/Shared/UnrealEngine/4.4/Engine/Source/(MartianCraft)/FlyTest/Intermediate'. It should only ever be searching under 'Source' folders -- an Intermediate folder is unexpected and will greatly decrease iteration times!
FlyTest is just a project created with the Flying Code template. I haven’t done anything with it,I just created it to look at how the flying controller was implemented, and I have no idea why this project is looking for something to do with that one.
Here’s the entire build transcript:
ExternalBuildToolExecution RepublicSniperAIEditor\ -\ Mac
cd /Users/Shared/UnrealEngine/4.4
export ACTION=
/Users/Shared/UnrealEngine/4.4/Engine/Build/BatchFiles/Mac/RocketBuild.sh RepublicSniperAIEditor macosx DebugGame /Users//Dropbox\ (MartianCraft)/RepublicSniperAI/RepublicSniperAI.uproject
Setting up Mono
Building RepublicSniperAIEditor...
WARNING: UnrealBuildTool found an Intermediate folder while looking for rules '/Users/Shared/UnrealEngine/4.4/Engine/Source/(MartianCraft)/FlyTest/Intermediate'. It should only ever be searching under 'Source' folders -- an Intermediate folder is unexpected and will greatly decrease iteration times!
Compiling with Mac SDK 10.9
Parsing headers for RepublicSniperAIEditor
/Users/Shared/UnrealEngine/4.4/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Services/BTService_BlueprintBase.h(69) : Expected an include at the top of the header: '#include "BTService_BlueprintBase.generated.h"'
Error: Failed to generate code for RepublicSniperAIEditor - error code: 2
UnrealHeaderTool failed for target 'RepublicSniperAIEditor' (platform: Mac, module info: /Users//Dropbox (MartianCraft)/RepublicSniperAI/Intermediate/Build/Mac/RepublicSniperAIEditor/DebugGame/UnrealHeaderTool.manifest).
Command /Users/Shared/UnrealEngine/4.4/Engine/Build/BatchFiles/Mac/RocketBuild.sh failed with exit code 2
Also, note that this happens in Xcode 5.1.1 or Xcode 6. Doesn’t seem to make a difference.