Bug for AIController class?

Hello, this is a reformulation on this question File.generated.h not found problem, xcode 6.1.1, OSX yosemite - C++ - Epic Developer Community Forums since it wasn’t clear and since I narrowed the problem. For the character class when I add it with “add code to project” then compile there is no problem. However when I do this in the same steps for AIController class it fails to compile and the error in the code is that the .generated.h is not found for AIController class.
I use xcode 6.1.1, unreal engine 4.5.1, and OSX yosemite

I think that it is class specific but why? It hasn’t anything to do with graphics so it can’t be about drivers, and I’m sure I didn’t mess up with the source code of the engine.

problem solved, here’s how you fix it: you open “build.cs” on your project and add “AIModule” to your PublicDependencyModuleNames.