TActorIterator Error

Make sure to add "CoreUObject" to your Private- or PublicDependencyModuleNames in the *.Build.cs.