Xcode compiler errors on out-of-the-box config, code still compiles

System:

  • Late 2016 MBP 15"
  • Mac OS 10.12.5 (latest stable)
  • Xcode 8.2.1 (latest stable)
  • UE 4.6.1 (latest stable through Epic Games Launcher)

Steps to reproduce:

  • Create a new project through UE4 editor
  • See that code compiles out-of-the-box → yep
  • Create new C++ class from UE4 editor
  • Open Xcode
  • Wait for code indexing to complete
  • See weird errors on brand new un-touched class (screenshots below)
  • See that code still compiles without problems
  • Try autocomplete on newly created C++ class, doesn’t work (screenshots below)

Steps tried & checked so far:

  • Have reinstalled Xcode & UE4 multiple times
  • No whitespace in UE4 engine installation path → user header paths in Xcode config are fine (screenshot below)

Anyone? Still stuck with this, getting quite frustrated and discouraged by this … Starting to think swapping to Unity slowly… x_x