# Attempting to extend UMG on Mac/XCode

**URL:** <https://forums.unrealengine.com/t/attempting-to-extend-umg-on-mac-xcode/343233>\
**Category:** Platform & Builds\
**Tags:** xcode, MAC, unreal-engine, CPP, question\
**Created:** [January 6, 2016, 1:27am UTC](https://forums.unrealengine.com/t/attempting-to-extend-umg-on-mac-xcode/343233 "2016-01-06T01:27:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eagletree](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eagletree](https://forums.unrealengine.com/u/eagletree)\
**Post date:** [January 6, 2016, 1:27am UTC](https://forums.unrealengine.com/t/attempting-to-extend-umg-on-mac-xcode/343233/1 "2016-01-06T01:27:00Z")

</div>

I was following this tutorial:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

In attempting to compile my PlayerController, I found that the include for Blueprint/UserWidget.h was not found. I changed this to the full path and that did not improve things, instead, includes within UserWidget.h were not found. In searching further, I found Rama’s tutorial and included more headers with still the same result, internal references were unable to be resolved. I have noted that there are many answers to this question associated with Visual C++, but nothing pertinent to the Mac and XCode. Does UMG work with the mac, and if so, any pointers would be appreciated.

Other changes were that I modified the ProjectName.Target.cs file as that was the only one available. I included “UMG”, “Slate”, “SlateCore”.

The errors I get are in UMG.h, SlateWrapperTypes.h is not found. In my project.generated.cpp, I get “Unknown type name UMG\_API”, Expected unqualified-id, and Use of undeclared identifier ‘Z Construct\_UCLass\_UUserWidget’.

The includes I put in the PlayerController class were:

```
#include "Runtime/UMG/Public/UMG.h"
#include "Runtime/UMG/Public/UMGStyle.h"
#include "Runtime/UMG/Public/Slate/SObjectWidget.h"
#include "Runtime/UMG/Public/IUMGModule.h"
#include "Runtime/UMG/Public/Blueprint/UserWidget.h"
```

---

<div class="post-metadata">

**Author:** ![eagletree](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eagletree](https://forums.unrealengine.com/u/eagletree)\
**Post date:** [January 10, 2016, 3:57pm UTC](https://forums.unrealengine.com/t/attempting-to-extend-umg-on-mac-xcode/343233/2 "2016-01-10T15:57:41Z")

</div>

The answer to this was embedded in my own question. I was attempting to add public and private dependencies to the wrong CSharp file. I did not look carefully enough and indeed, on the XCode project, there was a projname.build.cs file where the dependencies did need to go. It’s such a dumb error, I’m not sure this is worth leaving here but possibly someone else will make the same mistake. The includes work great once the correct .cs file is modified.
