# Error when creating architecture project in 4.25-"Failed to extract Metal compiler search directories"

**URL:** <https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409>\
**Category:** Architectural and Design Visualization\
**Tags:** error, launch, new-project, unreal-engine, architecture, question\
**Created:** [May 18, 2020, 10:33pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409 "2020-05-18T22:33:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_003fd831](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_003fd831](https://forums.unrealengine.com/u/anonymous_user_003fd831)\
**Post date:** [May 18, 2020, 10:33pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/1 "2020-05-18T22:33:25Z")

</div>

**Error when creating architecture project in 4.25-“Failed to extract Metal compiler search directories”**

I’m simply trying to create a project and each time get the same error, detailed below. I’m incredulous that something so basic could return an error like this. No clue whatsoever for how to interpret this or work around it. Also, my search in this forum did not yield a solution.

**System**  
Unreal 4.25.0  
OSX Catalina (10.15.4)

**Error summary**  
“Failed to extract Metal compiler search directories”

**Full output**

> 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 = 0x10e543a17 (filename  
> not found) [in UE4Editor-Core.dylib]  
> FMacErrorOutputDevice::Serialize(char16\_t  
> const\*, ELogVerbosity::Type, FName  
> const&) Address = 0x10e6dac23  
> (filename not found) [in  
> UE4Editor-Core.dylib]  
> FOutputDevice::LogfImpl(char16\_t  
> const\*, …) Address = 0x10e7bf689  
> (filename not found) [in  
> UE4Editor-Core.dylib] auto  
> SingleCompilerSetup(EAppleSDKType)::$\_23::operator() char16\_t  
> [52]\>(FLogCategoryLogMetalShaderCompiler  
> const&, char16\_t const (&) [52]) const  
> Address = 0x164b6b50d (filename not  
> found) [in  
> UE4Editor-MetalShaderFormat.dylib]  
> SingleCompilerSetup(EAppleSDKType)  
> Address = 0x164b6ae51 (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 TSizedDefaultAllocator\<32\> \>&,  
> FMetalTessellationOutputs const&,  
> unsigned int, unsigned int, unsigned  
> int, unsigned int, TArray char, TSizedDefaultAllocator\<32\> \>  
> const&, bool) Address = 0x164b3d8be  
> (filename not found) [in  
> UE4Editor-MetalShaderFormat.dylib]  
> FMetalShaderOutputCooker::Build(TArray char, TSizedDefaultAllocator\<32\> \>&)  
> Address = 0x164b24069 (filename not  
> found) [in  
> UE4Editor-MetalShaderFormat.dylib]  
> FDerivedDataCache::FBuildAsyncWorker::DoWork()  
> Address = 0x12cce637a (filename not  
> found) [in  
> UE4Editor-DerivedDataCache.dylib]  
> FAsyncTask::DoWork()  
> Address = 0x12cce49fd (filename not  
> found) [in  
> UE4Editor-DerivedDataCache.dylib]  
> FAsyncTask::Start(bool,  
> FQueuedThreadPool\*) Address =  
> 0x12cce7915 (filename not found) [in  
> UE4Editor-DerivedDataCache.dylib]  
> FDerivedDataCache::GetSynchronous(FDerivedDataPluginInterface\*,  
> TArray TSizedDefaultAllocator\<32\> \>&, bool\*)  
> Address = 0x12cce1a89 (filename not  
> found) [in  
> UE4Editor-DerivedDataCache.dylib]  
> CompileShader\_Metal(FShaderCompilerInput  
> const&, FShaderCompilerOutput&,  
> FString const&) Address = 0x164b4b734  
> (filename not found) [in  
> UE4Editor-MetalShaderFormat.dylib]  
> FShaderCompileUtilities::ExecuteShaderCompileJob(FShaderCommonCompileJob&)  
> Address = 0x1113bc69d (filename not  
> found) [in UE4Editor-Engine.dylib]  
> FShaderCompileThreadRunnable::CompileDirectlyThroughDll()  
> Address = 0x1113bc33d (filename not  
> found) [in UE4Editor-Engine.dylib]  
> FShaderCompileThreadRunnable::CompilingLoop()  
> Address = 0x1113bd3c6 (filename not  
> found) [in UE4Editor-Engine.dylib]  
> FShaderCompileThreadRunnableBase::Run()  
> Address = 0x1113b82c9 (filename not  
> found) [in UE4Editor-Engine.dylib]  
> FRunnableThreadPThread::Run() Address  
> = 0x10e5d3398 (filename not found) [in UE4Editor-Core.dylib]  
> FRunnableThreadPThread::\_ThreadProc(void\*)  
> Address = 0x10e572421 (filename not  
> found) [in UE4Editor-Core.dylib]  
> \_pthread\_start Address = 0x7fff713fa109 (filename not found)  
> [in libsystem\_pthread.dylib]  
> thread\_start Address = 0x7fff713f5b8b  
> (filename not found) [in  
> libsystem\_pthread.dylib]

---

<div class="post-metadata">

**Author:** ![mieseMarke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mieseMarke](https://forums.unrealengine.com/u/mieseMarke)\
**Post date:** [May 25, 2020, 6:35pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/2 "2020-05-25T18:35:38Z")

</div>

Hi! I hade the same problem today after installing Apple Xcode. After deinstallation it works fine without this error message. Let me know if it was helpful.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_003fd831](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_003fd831](https://forums.unrealengine.com/u/anonymous_user_003fd831)\
**Post date:** [May 25, 2020, 10:39pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/3 "2020-05-25T22:39:07Z")

</div>

Hi, thanks for answering and solution. To clarify, after deinstalling Xcode, you no longer had this error?

---

<div class="post-metadata">

**Author:** ![mieseMarke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mieseMarke](https://forums.unrealengine.com/u/mieseMarke)\
**Post date:** [May 26, 2020, 5:51am UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/4 "2020-05-26T05:51:26Z")

</div>

Yep, that worked for me! Don’t know why. Let me know if it worked for you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65abdb821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65abdb821](https://forums.unrealengine.com/u/anonymous_user_65abdb821)\
**Post date:** [June 1, 2020, 5:37pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/5 "2020-06-01T17:37:48Z")

</div>

Did you reinstall xcode after deinstalling because it runs really slow without it? Additionally, do you think this error has anything to do with the OS?

---

<div class="post-metadata">

**Author:** ![mieseMarke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mieseMarke](https://forums.unrealengine.com/u/mieseMarke)\
**Post date:** [June 1, 2020, 6:39pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/6 "2020-06-01T18:39:22Z")

</div>

Nope I didn’t and yep, it works really slow without Xcode. I was in hope to get an answer from a offical but …

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65abdb821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65abdb821](https://forums.unrealengine.com/u/anonymous_user_65abdb821)\
**Post date:** [June 1, 2020, 8:30pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/7 "2020-06-01T20:30:08Z")

</div>

Do you think its the OS?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65abdb821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65abdb821](https://forums.unrealengine.com/u/anonymous_user_65abdb821)\
**Post date:** [June 1, 2020, 8:30pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/8 "2020-06-01T20:30:26Z")

</div>

Should I downgrade?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65abdb821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65abdb821](https://forums.unrealengine.com/u/anonymous_user_65abdb821)\
**Post date:** [June 3, 2020, 10:20pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/9 "2020-06-03T22:20:49Z")

</div>

Hey guys, The new update 4.25.1 fixed it. Should be fine now

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65abdb821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65abdb821](https://forums.unrealengine.com/u/anonymous_user_65abdb821)\
**Post date:** [June 4, 2020, 12:38am UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/10 "2020-06-04T00:38:26Z")

</div>

Did you reinstall it after? because it runs really slow without xcode. Also do you think it has something to do with the OS?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c45a9a46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c45a9a46](https://forums.unrealengine.com/u/anonymous_user_c45a9a46)\
**Post date:** [June 4, 2020, 7:03am UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/11 "2020-06-04T07:03:10Z")

</div>

I just installed 4.25.1 and it crashes every time I attempt to create a new project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d8a3b304](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d8a3b304](https://forums.unrealengine.com/u/anonymous_user_d8a3b304)\
**Post date:** [June 4, 2020, 9:00am UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/12 "2020-06-04T09:00:25Z")

</div>

Yeah mine does that too! I updated to 4.25.1 yesterday and now every time a new level is created it just crashes!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c45a9a46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c45a9a46](https://forums.unrealengine.com/u/anonymous_user_c45a9a46)\
**Post date:** [June 4, 2020, 9:26am UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/13 "2020-06-04T09:26:10Z")

</div>

As suggested above (without explaining as to why one would), I reluctantly uninstalled Xcode. Unreal then allowed me to create a new project. However, I received the warning message…

> Xcode was not detected on this Mac. Metal shader compilation will fall back to runtime compiled text shaders, which are slower. Please install latest version of Xcode for best performance and make sure it’s set as default using Xcode-select tool.

(I’ve had enough futzing around with this all afternoon (and then having issues with this site telling me I need to log in, when I’m already logged in. So I’ll try and reinstall Xcode tomorrow when I’m in a better mood, and see what happens.)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_003fd831](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_003fd831](https://forums.unrealengine.com/u/anonymous_user_003fd831)\
**Post date:** [June 4, 2020, 3:49pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/14 "2020-06-04T15:49:16Z")

</div>

Interesting, all of this. Thank you for the attention and for sharing solutions. I will update to 4.25.1 and see how that works and report back

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65abdb821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65abdb821](https://forums.unrealengine.com/u/anonymous_user_65abdb821)\
**Post date:** [June 4, 2020, 3:53pm UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/15 "2020-06-04T15:53:58Z")

</div>

Sorry to hear that. It worked for me. Hopefully soon one of the developers will take notice of these issues.

---

<div class="post-metadata">

**Author:** ![eobet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eobet/32/465239_2.png) [@eobet](https://forums.unrealengine.com/u/eobet)\
**Post date:** [June 13, 2020, 9:29am UTC](https://forums.unrealengine.com/t/error-when-creating-architecture-project-in-4-25-failed-to-extract-metal-compiler-search-directories/465409/16 "2020-06-13T09:29:56Z")

</div>

You need to start Xcode at least once after installing it, because on first run it apparently installs some additional components.

I got this answer from here, and it worked (MacOS 10.14.6 and Xcode 11.3.1):

> **[UE4 Keeps Crashing(mac)](https://forums.unrealengine.com/questions/964801/ue4-keeps-crashing-2.html)**
>
> My Unreal keeps crashing. Heres the log LoginId:1778a4d1464cd1600c577a8cecce3fdb EpicAccountId:0212660f8a594676beab1a62c3b682fc Fatal error:...
