# I can't create a C++ project on my OS X

**URL:** <https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295>\
**Category:** C++\
**Tags:** c-build, new-project, unreal-engine, UE4, CPP, question\
**Created:** [August 16, 2016, 11:12am UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295 "2016-08-16T11:12:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_65e70e32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65e70e32](https://forums.unrealengine.com/u/anonymous_user_65e70e32)\
**Post date:** [August 16, 2016, 11:12am UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/1 "2016-08-16T11:12:00Z")

</div>

I want to create an project in c++ on My Mac OS X (1,6 GHz Intel Core i5/Intel HD Graphics 6000 1536 MB) but i always get this warning message:  
An error occurred while trying to generate project files.

Running Mono…

Setting up Mono  
/Users/Shared/UnrealEngine/4.12/Engine /Users/Shared/UnrealEngine/4.12/Engine/Binaries/Mac  
Discovering modules, targets and source code for project…  
Compiling with non-standard Xcode (xcode-select): /Library/Developer/CommandLineTools/  
Triggered an exception while looking for SDK directory in Xcode.app  
System.IO.DirectoryNotFoundException: Directory ‘/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs’ not found.  
at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in :0  
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in :0  
at System.IO.Directory.GetDirectories (System.String path, System.String searchPattern) [0x00000] in :0  
at System.IO.Directory.GetDirectories (System.String path) [0x00000] in :0  
at UnrealBuildTool.AppleToolChain.SelectSDK (System.String BaseSDKDir, System.String OSPrefix, System.String& PlatformSDKVersion, Boolean bVerbose) [0x00000] in :0  
ERROR: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs

What is the problem? I have Visual Studio Code installed with the c/c++ plugin and it also installed some packages called “mono”.  
Please Help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86746194](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86746194](https://forums.unrealengine.com/u/anonymous_user_86746194)\
**Post date:** [August 16, 2016, 3:22pm UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/2 "2016-08-16T15:22:42Z")

</div>

Do you have XCode instalied? It looks like it can’t find the sdk directory for it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65e70e32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65e70e32](https://forums.unrealengine.com/u/anonymous_user_65e70e32)\
**Post date:** [August 17, 2016, 11:32am UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/3 "2016-08-17T11:32:35Z")

</div>

Thanks, just noticed myself. Didn’t realize that Apple runs different.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebf553b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebf553b1](https://forums.unrealengine.com/u/anonymous_user_ebf553b1)\
**Post date:** [October 5, 2016, 7:25am UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/4 "2016-10-05T07:25:09Z")

</div>

Im having the same issue, its only been since I upgraded to sierra and Xcode8 so I think its an apple thing not UE4

---

<div class="post-metadata">

**Author:** ![Pirate\_Tony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pirate\_Tony](https://forums.unrealengine.com/u/Pirate_Tony)\
**Post date:** [January 19, 2017, 6:26am UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/5 "2017-01-19T06:26:50Z")

</div>

Probably you had another version of “cli-xcode”. For example, if you try some developer stuff like homebrew or just “xcode-select --install” ,which installs little bit different SDK (more regular for compile command line apps).

Anyway try to install official Xcode first and run this command in terminal after:  
$sudo xcode-select -r

Let me know if it helps

---

<div class="post-metadata">

**Author:** ![Jessixian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jessixian](https://forums.unrealengine.com/u/Jessixian)\
**Post date:** [May 28, 2017, 11:32pm UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/6 "2017-05-28T23:32:38Z")

</div>

Can confirm that the sudo xcode-select -r was what fixed it for me.

---

<div class="post-metadata">

**Author:** ![mabrumgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mabrumgames](https://forums.unrealengine.com/u/mabrumgames)\
**Post date:** [July 27, 2018, 4:58pm UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/7 "2018-07-27T16:58:47Z")

</div>

yeah thank you very much it works with sudo xcode-select --reset

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_35d2ed1d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_35d2ed1d1](https://forums.unrealengine.com/u/anonymous_user_35d2ed1d1)\
**Post date:** [August 29, 2018, 6:36pm UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/8 "2018-08-29T18:36:51Z")

</div>

ThankU, It work for me

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_85a74dc0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_85a74dc0](https://forums.unrealengine.com/u/anonymous_user_85a74dc0)\
**Post date:** [October 30, 2018, 3:14am UTC](https://forums.unrealengine.com/t/i-cant-create-a-c-project-on-my-os-x/367295/9 "2018-10-30T03:14:40Z")

</div>

That U, It work for me too.
