# Unreal Engine will not open C++ new project on Mac OS

**URL:** <https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124>\
**Category:** Platform & Builds\
**Tags:** error-compile, unreal-engine, compile-error, visual, question\
**Created:** [September 4, 2018, 1:25pm UTC](https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124 "2018-09-04T13:25:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5dfe52ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5dfe52ce](https://forums.unrealengine.com/u/anonymous_user_5dfe52ce)\
**Post date:** [September 4, 2018, 1:25pm UTC](https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124/1 "2018-09-04T13:25:46Z")

</div>

At first I tried to compile with Xcode and thought it was not working because I got version 9.1xx so I decided to try Visual basics 2017 and find out there is no C++ extension for the Mac -\_-. I install Visual code and install the C++ extension, Unreal extension, Mono Extension and LLDB debugging extension and still the same error. I am new to game developing and just getting this thing to work is already stressing me out. Below is the error message that I am getting. Please help!!

The project could not be compiled. Would you like to open it in Visual Studio Code?

Running Mono…

Setting up Mono  
/Users/Shared/Epic Games/UE\_4.18/Engine /Users/Shared/Epic Games/UE\_4.18/Engine/Binaries/Mac  
@progress push 5%  
Parsing headers for MyProject5Editor  
Running UnrealHeaderTool “/Users/user/Documents/Unreal Projects/MyProject5/MyProject5.uproject” “/Users/user/Documents/Unreal Projects/MyProject5/Intermediate/Build/Mac/MyProject5Editor/Development/MyProject5Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed  
Reflection code generated for MyProject5Editor in 9.4644434 seconds  
@progress pop  
Performing 6 actions (8 in parallel)  
[1/6] Compile SharedPCH.Engine.h  
In file included from /Users/Shared/Epic Games/UE\_4.18/Engine/Intermediate/Build/Mac/UE4Editor/Development/Engine/SharedPCH.Engine.h:138:  
In file included from /Users/Shared/Epic Games/UE\_4.18/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:300:  
Runtime/CoreUObject/Public/UObject/UnrealType.h:3285:37: error: lambda capture ‘LocalMapLayoutForCapture’ is not used [-Werror,-Wunused-lambda-capture]  
[LocalKeyPropForCapture, KeyPtr, LocalMapLayoutForCapture](void\* NewElementKey)  
^  
Runtime/CoreUObject/Public/UObject/UnrealType.h:3298:41: error: lambda capture ‘LocalMapLayoutForCapture’ is not used [-Werror,-Wunused-lambda-capture]  
[LocalValuePropForCapture, ValuePtr, LocalMapLayoutForCapture](void\* NewElementValue)  
^  
Runtime/CoreUObject/Public/UObject/UnrealType.h:3808:47: error: lambda capture ‘LocalSetLayoutForCapture’ is not used [-Werror,-Wunused-lambda-capture]  
[LocalElementPropForCapture, ElementToAdd, LocalSetLayoutForCapture](void\* NewElement)  
^  
3 errors generated.  
ERROR: UBT ERROR: Failed to produce item: /Users/user/Documents/Unreal Projects/MyProject5/Binaries/Mac/UE4Editor-MyProject5.dylib  
Total build time: 26.47 seconds (Local executor: 0.00 seconds)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4d259155](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4d259155](https://forums.unrealengine.com/u/anonymous_user_4d259155)\
**Post date:** [September 4, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124/2 "2018-09-04T13:45:27Z")

</div>

Try using Xcode 8.3.3, I found that latest version of Xcode doesn’t work for version 4.18

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5dfe52ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5dfe52ce](https://forums.unrealengine.com/u/anonymous_user_5dfe52ce)\
**Post date:** [September 4, 2018, 3:30pm UTC](https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124/3 "2018-09-04T15:30:28Z")

</div>

I just tried that and I get the same error -\_\_\_- nothing seems to work. I don’t know what the problem is

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5dfe52ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5dfe52ce](https://forums.unrealengine.com/u/anonymous_user_5dfe52ce)\
**Post date:** [September 4, 2018, 6:03pm UTC](https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124/4 "2018-09-04T18:03:23Z")

</div>

Finally got it to work. Uninstalled all versions of Xcode and reinstalled Xcode 8.3.3. I had both X code before. Thanks a million

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a6812f0f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a6812f0f](https://forums.unrealengine.com/u/anonymous_user_a6812f0f)\
**Post date:** [October 30, 2018, 12:10pm UTC](https://forums.unrealengine.com/t/unreal-engine-will-not-open-c-new-project-on-mac-os/433124/5 "2018-10-30T12:10:05Z")

</div>

An error occurred while trying to generate project files.

Running Mono…

Setting up Mono  
/Users/Shared/Epic Games/UE\_4.19/Engine /Users/Shared/Epic Games/UE\_4.19/Engine/Binaries/Mac  
Discovering modules, targets and source code for project…  
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.AppleToolChainSettings.SelectSDK (System.String BaseSDKDir, System.String OSPrefix, System.String& PlatformSDKVersion, Boolean bVerbose) [0x00000] in :0  
 WARNING: Exception while generating include data for UE4Editor: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs  
Generating data for project indexing… 0%@progress ‘Generating data for project indexing…’ 50%  
 WARNING: Exception while generating include data for HelloWorldEditor: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs  
Generating data for project indexing… 50%@progress ‘Generating data for project indexing…’ 100%  
ERROR: UnrealBuildTool Exception: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs
