UE4 Keeps Crashing(mac)

My Unreal keeps crashing. Heres the log

LoginId:1778a4d1464cd1600c577a8cecce3fdb
EpicAccountId:0212660f8a594676beab1a62c3b682fc

Fatal error: [File:/Users/build/Build/++UE4+Licensee/Sync/Engine/Source/Developer/Apple/MetalShaderFormat/Private/MetalShaderCompiler.cpp] [Line: 716] Failed to extract Metal compiler search directories

FGenericPlatformMisc::RaiseException(unsigned int) Address = 0x10868f7b7 (filename not found) [in UE4Editor-Core.dylib]
FMacErrorOutputDevice::Serialize(char16_t const*, ELogVerbosity::Type, FName const&) Address = 0x108826a53 (filename not found) [in UE4Editor-Core.dylib]
FOutputDevice::LogfImpl(char16_t const*, …) Address = 0x10890b609 (filename not found) [in UE4Editor-Core.dylib]
auto SingleCompilerSetup(EAppleSDKType)::$_23::operator()(FLogCategoryLogMetalShaderCompiler const&, char16_t const (&) [52]) const Address = 0x165dc650d (filename not found) [in UE4Editor-MetalShaderFormat.dylib]
SingleCompilerSetup(EAppleSDKType) Address = 0x165dc5e51 (filename not found) [in UE4Editor-MetalShaderFormat.dylib]
BuildMetalShaderOutput(FShaderCompilerOutput&, FShaderCompilerInput const&, FSHAHash const&, unsigned int, char const*, unsigned int, unsigned int, unsigned int, unsigned char, char16_t const*, char16_t const*, EMetalTypeBufferMode, TArray >&, FMetalTessellationOutputs const&, unsigned int, unsigned int, unsigned int, unsigned int, TArray > const&, bool) Address = 0x165d988be (filename not found) [in UE4Editor-MetalShaderFormat.dylib]
FMetalShaderOutputCooker::Build(TArray >&) Address = 0x165d7f069 (filename not found) [in UE4Editor-MetalShaderFormat.dylib]
FDerivedDataCache::FBuildAsyncWorker::DoWork() Address = 0x126e08e0a (filename not found) [in UE4Editor-DerivedDataCache.dylib]
FAsyncTask::DoWork() Address = 0x126e0748d (filename not found) [in UE4Editor-DerivedDataCache.dylib]
FAsyncTask::Start(bool, FQueuedThreadPool*) Address = 0x126e0a3a5 (filename not found) [in UE4Editor-DerivedDataCache.dylib]
FDerivedDataCache::GetSynchronous(FDerivedDataPluginInterface*, TArray >&, bool*) Address = 0x126e04519 (filename not found) [in UE4Editor-DerivedDataCache.dylib]
CompileShader_Metal(FShaderCompilerInput const&, FShaderCompilerOutput&, FString const&) Address = 0x165da6734 (filename not found) [in UE4Editor-MetalShaderFormat.dylib]
FShaderCompileUtilities::ExecuteShaderCompileJob(FShaderCommonCompileJob&) Address = 0x10b505b9d (filename not found) [in UE4Editor-Engine.dylib]
FShaderCompileThreadRunnable::CompileDirectlyThroughDll() Address = 0x10b50583d (filename not found) [in UE4Editor-Engine.dylib]
FShaderCompileThreadRunnable::CompilingLoop() Address = 0x10b5068c6 (filename not found) [in UE4Editor-Engine.dylib]
FShaderCompileThreadRunnableBase::Run() Address = 0x10b5017c9 (filename not found) [in UE4Editor-Engine.dylib]
FRunnableThreadPThread::Run() Address = 0x10871f138 (filename not found) [in UE4Editor-Core.dylib]
FRunnableThreadPThread::_ThreadProc(void*) Address = 0x1086be1c1 (filename not found) [in UE4Editor-Core.dylib]
_pthread_start Address = 0x7fff72c99109 (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7fff72c94b8b (filename not found) [in libsystem_pthread.dylib]

please sombody help me i have a deadline on monday and i cant do anything

I figured it out i had to open xcode so it could instal properly.

You must have Xcode installed. Apparently the program accesses some of its functions (?) In any case, we need Xcode.