When i tried to build my project using xcode. It gave me this error:
ExternalBuildToolExecution BatteryGameEditor\ -\ Mac
cd /Users/Shared/UnrealEngine/4.9
export ACTION=
/Users/Shared/UnrealEngine/4.9/Engine/Build/BatchFiles/Mac/RocketBuild.sh BatteryGameEditor macosx DebugGame /Users/stefanjakobsson/Documents/Unreal\ Projects/BatteryGame/BatteryGame.uproject
Building BatteryGameEditor...
Creating makefile for BatteryGameEditor (no existing makefile)
Compiling with MacOSX SDK 10.10
Parsing headers for BatteryGameEditor
Running UnrealHeaderTool "/Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/BatteryGame.uproject" "/Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/Intermediate/Build/Mac/BatteryGameEditor/DebugGame/UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
/Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/Source/BatteryGame/Battery.h(26) : Expected an include at the top of the header: '#include "Battery.generated.h"'
Error: Failed to generate code for BatteryGameEditor - error code: OtherCompilationError (5)
UnrealHeaderTool failed for target 'BatteryGameEditor' (platform: Mac, module info: /Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/Intermediate/Build/Mac/BatteryGameEditor/DebugGame/UnrealHeaderTool.manifest).
Command /Users/Shared/UnrealEngine/4.9/Engine/Build/BatchFiles/Mac/RocketBuild.sh failed with exit code 5
Ive got no idea what to do. Hope that someone can help me.