# Xcode's metal shader compiler was not found, verify Xcode

**URL:** <https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [January 9, 2020, 6:54pm UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201 "2020-01-09T18:54:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IAMCHMP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IAMCHMP](https://forums.unrealengine.com/u/IAMCHMP)\
**Post date:** [January 9, 2020, 6:54pm UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/1 "2020-01-09T18:54:01Z")

</div>

Hey folks,  
can someone help with this issue?:

Problem:  
error in terminal, skipped  
UATHelper: Packaging (iOS): LogShaderCompilers: Error: /tmp/3135\_2233400218.metal(0): Xcode’s metal shader compiler was not found, verify Xcode has been installed on this Mac and that it has been selected in Xcode \> Preferences \> Locations \> Command-line Tools.  
UATHelper: Packaging (iOS): LogMac: Error: appError called: Assertion failed: [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 4523]  
UATHelper: Packaging (iOS):

Can´t solve it…

Xcode is updated  
Metal shader compiler - Check  
Also installed Homebrew  
Command Line Tools updated and in  
Xcode-Preferences-Locations-Command Line Tools checked, v. Xcode 11.3 (11C29)  
Unreal Engine 4 v. 4.22.3

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![\_117\_8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_117\_8](https://forums.unrealengine.com/u/_117_8)\
**Post date:** [January 21, 2020, 6:39am UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/2 "2020-01-21T06:39:23Z")

</div>

Is this solved?  
I am facing this now.

Please, somebody help us…

XCode ver. 1 1.3.1 (11C504) + CommandLineTools  
UE4 ver. 4.22.3

* * *

I just upgrade UE4 engine version to 4.24.1  
Then, it solved

---

<div class="post-metadata">

**Author:** ![KevinTheBright](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KevinTheBright](https://forums.unrealengine.com/u/KevinTheBright)\
**Post date:** [March 6, 2020, 2:51am UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/3 "2020-03-06T02:51:42Z")

</div>

Same issue with 4.24.3 on Catalina.

---

<div class="post-metadata">

**Author:** ![KaiKristo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaiKristo](https://forums.unrealengine.com/u/KaiKristo)\
**Post date:** [March 6, 2020, 6:47am UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/4 "2020-03-06T06:47:38Z")

</div>

Unreal Engine 4 v. 4.22.3 don’t work with xcode 11, change xcode to 10.1 or 10.3(not sure)  
if you want to use 11.3 - use 4.24 UE

---

<div class="post-metadata">

**Author:** ![CosmicLobster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cosmiclobster/32/1211357_2.png) [@CosmicLobster](https://forums.unrealengine.com/u/CosmicLobster)\
**Post date:** [March 6, 2020, 11:47am UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/5 "2020-03-06T11:47:31Z")

</div>

> [@KaiKristo](#):
>
> Unreal Engine 4 v. 4.22.3 don’t work with xcode 11, change xcode to 10.1 or 10.3(not sure)  
> if you want to use 11.3 - use 4.24 UE

That’s right. Which XCode version to be used can be checked **in the Release Notes**.  
Unreal Engine 4.22 Release Notes: [https://docs.unrealengine.com/en-US/…\_22/index.html](https://docs.unrealengine.com/en-US/Support/Builds/ReleaseNotes/4_22/index.html)

Choose/Switch XCode version used by unreal with MacOS terminal command:  
sudo xcode-select -switch / **PathToXCodeVersion** /Contents/Developer

for example:  
sudo xcode-select -switch /Applications/XCode10.1/Xcode.app/Contents/Developer.

---

<div class="post-metadata">

**Author:** ![Antidamage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/antidamage/32/918692_2.png) [@Antidamage](https://forums.unrealengine.com/u/Antidamage)\
**Post date:** [March 6, 2020, 12:08pm UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/6 "2020-03-06T12:08:05Z")

</div>

You can also select which XCode version to use via XCode -\> Preferences -\> Locations and then selecting from the dropdown. You need to have reinstalled the old toolchain first though. Check the sticky at the top of this forum for instructions.

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [March 19, 2020, 8:07pm UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/7 "2020-03-19T20:07:11Z")

</div>

i was able to fix this error by updating to 4.24

---

<div class="post-metadata">

**Author:** ![ROYALKINGSJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ROYALKINGSJ](https://forums.unrealengine.com/u/ROYALKINGSJ)\
**Post date:** [March 6, 2021, 3:09am UTC](https://forums.unrealengine.com/t/xcodes-metal-shader-compiler-was-not-found-verify-xcode/136201/8 "2021-03-06T03:09:22Z")

</div>

To use x-code in unreal engine, just open x-code and then open x-code preferences and then go to location tab and then click on command line tool and select latest version available

This actually worked for me and most of x-code users will find this useful

If this did’nt worked then the problem is something else
