Xcode tries to reference windows SDK - No type named 'HWND' in 'SWindow'

Trying to build a project in Xcode but I’m getting windows API references from the engine build.

Creating an empty new project works fine, there is no reference to windows in any of the game’s C++ code.

I have generated the Xcode project files and removed the Intermediate folder still no luck.

I would appreciate some help or a nudge in the right direction.
Is there a specific place you set the target to OSX instead of windows for Xcode compilation to work?