Unreal Engine don't compile with Xcode

Hi everyone, when i open a project with c++ i get this error:

The project could not be compiled. Would you like to open it in Xcode?

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 MyProjectEditor
Running UnrealHeaderTool “/Users/flaviocamardella/Documents/Unreal Projects/MyProject/MyProject.uproject” “/Users/flaviocamardella/Documents/Unreal Projects/MyProject/Intermediate/Build/Mac/MyProjectEditor/Development/MyProjectEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProjectEditor in 9,4580868 seconds
@progress pop
Performing 12 actions (8 in parallel)
[1/12] 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/flaviocamardella/Documents/Unreal Projects/MyProject/Binaries/Mac/UE4Editor-MyProject.dylib
Total build time: 27,22 seconds (Local executor: 0,00 seconds)

Do you have any solution for this?

Thanks in advance

I also run into this errors generated from [-Werror,-Wunused-lambda-capture] setting using Xcode 9.3 and was able to work around it with downgrading to Xcode 9.0.

I downgraded my Xcode 9.4.1 to Xcode 9.0 and it is fixed. Thank you very much for helping :slight_smile: