# Can't find Xcode install for Metal compiler

**URL:** <https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836>\
**Category:** Getting Started & Setup\
**Tags:** error, xcode-ios, unreal-engine, Installation, question\
**Created:** [January 27, 2021, 12:57am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836 "2021-01-27T00:57:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ec8540731](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ec8540731](https://forums.unrealengine.com/u/anonymous_user_ec8540731)\
**Post date:** [January 27, 2021, 12:57am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/1 "2021-01-27T00:57:43Z")

</div>

Hello,

I’ve just installed UE4, but it seems i can’t launch the program. When i press launch i receive the following message:

“Can’t find Xcode install for Metal compiler. Please install Xcode and run Xcode.app to accept license or ensure active developer directory is set to current Xcode installation using xcode-select.”

I have no idea what this means, and i can’t seem to find anything on my computer relating to “Xcode”.

I hope someone can help me.

Many thanks!

---

<div class="post-metadata">

**Author:** ![Hardgod70](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hardgod70](https://forums.unrealengine.com/u/Hardgod70)\
**Post date:** [February 7, 2021, 11:57pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/2 "2021-02-07T23:57:50Z")

</div>

Waiting for the same answer.

---

<div class="post-metadata">

**Author:** ![Zaryn\_Avaren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zaryn\_Avaren](https://forums.unrealengine.com/u/Zaryn_Avaren)\
**Post date:** [February 12, 2021, 6:04am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/3 "2021-02-12T06:04:32Z")

</div>

You have to install XCode from Apple’s App Store. Unreal uses this to compile your games. Once you install, you have to open Xcode and accept the licensing agreement before Unreal will work.

---

<div class="post-metadata">

**Author:** ![Osaka\_Blue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Osaka\_Blue](https://forums.unrealengine.com/u/Osaka_Blue)\
**Post date:** [February 13, 2021, 8:46pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/4 "2021-02-13T20:46:41Z")

</div>

Opening Terminal and pasting this code worked for me:  
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

---

<div class="post-metadata">

**Author:** ![Doctor\_Tyrell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doctor\_Tyrell](https://forums.unrealengine.com/u/Doctor_Tyrell)\
**Post date:** [February 16, 2021, 6:02am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/5 "2021-02-16T06:02:10Z")

</div>

This worked for me instantly. Ty!

---

<div class="post-metadata">

**Author:** ![elninobravo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@elninobravo](https://forums.unrealengine.com/u/elninobravo)\
**Post date:** [March 27, 2021, 2:47am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/6 "2021-03-27T02:47:26Z")

</div>

Same here – Thanx for the tip!

---

<div class="post-metadata">

**Author:** ![CRJ\_DESIGNSTUDIO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CRJ\_DESIGNSTUDIO](https://forums.unrealengine.com/u/CRJ_DESIGNSTUDIO)\
**Post date:** [March 27, 2021, 5:03pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/7 "2021-03-27T17:03:50Z")

</div>

Sorry not working for me. Help

---

<div class="post-metadata">

**Author:** ![elninobravo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@elninobravo](https://forums.unrealengine.com/u/elninobravo)\
**Post date:** [March 29, 2021, 6:08am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/8 "2021-03-29T06:08:12Z")

</div>

Same here - thanks for the tip!

---

<div class="post-metadata">

**Author:** ![Salsatacular](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Salsatacular](https://forums.unrealengine.com/u/Salsatacular)\
**Post date:** [March 31, 2021, 3:34am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/9 "2021-03-31T03:34:55Z")

</div>

Download and install Xcode. You may need to move the Xcode application to your application folder on your Mac for UE to begin loading. (If you cant download it from the App store then find the download on Apples website.)

---

<div class="post-metadata">

**Author:** ![Maxim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxim](https://forums.unrealengine.com/u/Maxim)\
**Post date:** [April 5, 2021, 3:10pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/10 "2021-04-05T15:10:29Z")

</div>

worked for me! Thanks. (BigSur, m1 pro, 2020).  
Steps:

1. Install Unreal

2. Install Xcode

3. Run Xcode and accept a License

4. Run Terminal and exec:

5. Run Unreal

6. Create your awesome game and profit!

---

<div class="post-metadata">

**Author:** ![liz\_twinmotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liz\_twinmotion](https://forums.unrealengine.com/u/liz_twinmotion)\
**Post date:** [April 20, 2021, 10:13pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/11 "2021-04-20T22:13:14Z")

</div>

I had the same problem, I wrote this in the terminal:

sudo xcode-select --reset

---

<div class="post-metadata">

**Author:** ![sewonist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sewonist](https://forums.unrealengine.com/u/sewonist)\
**Post date:** [May 27, 2021, 7:32am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/12 "2021-05-27T07:32:17Z")

</div>

Work like charm! Thank you for share!

---

<div class="post-metadata">

**Author:** ![simsimphony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@simsimphony](https://forums.unrealengine.com/u/simsimphony)\
**Post date:** [June 6, 2021, 1:11pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/13 "2021-06-06T13:11:10Z")

</div>

I’m having the same problem. And after I tried to install Xcode from Apple’s site, I received the msg:

_“Xcode can’t be installed on [VolumeName] because macOS version 11 or later is required”_  
(This machine is on 10.15.7 Catalina and checking under the Apple is says this hardware is up to date. A 2012 MacPro laptop 2.5Gh Dual i5 is probably too old/EOL not supported?)

I also tried the sudo suggestion in Terminal suggested here and received a further error msg:

_“[MyUser] is not in the sudoers file. This incident will be reported.”_  
(I’ll see if I can add it and get past this)

:(. … Any help greatly appreciated. Thank you Community

---

<div class="post-metadata">

**Author:** ![Elle33333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elle33333](https://forums.unrealengine.com/u/Elle33333)\
**Post date:** [June 8, 2021, 2:33pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/14 "2021-06-08T14:33:43Z")

</div>

I have the same issue. I got the following message: Can’t find Xcode install for Metal compiler. Please install Xcode and run Xcode.app to accept license or ensure active developer directory is set to current Xcode installation using Xcode-select.

I opened Terminal and put in: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer  
and it asked me to put in password. My laptop password is shown as invalid.

Error Message: xcode-select: error: invalid developer directory ‘/Applications/Xcode.app/Contents/Developer’

I’m using macOS Big Sur v11.4.

Can anyone help??

---

<div class="post-metadata">

**Author:** ![BenniHaarna3000\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenniHaarna3000\_1](https://forums.unrealengine.com/u/BenniHaarna3000_1)\
**Post date:** [July 8, 2021, 1:53pm UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/15 "2021-07-08T13:53:20Z")

</div>

This worked for me:  
Move the Xcode application to your application folder on your Mac for UE to begin loading.

I had to search for an older version of Xcode 12.4 to run on Catalina. It installed to my downloads weirdly. Moved it to Applications and worked.

Have run the sudo commad:  
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Unreal is now launching but taking a long time to initialize. Hopefully the first time only.  
Am missing templates to launch a new project… Is this normal. Should I download from somewhere?

Has anyone had better experience running on Windows than Mac?

I have an extra GPU unit to add to my setup to help run unreal. Anyone else tried this on a Mac?  
I am looking to run a GEFORCE RTX 2080Ti in an enclosure.

I also have installed windows on my iMacPro 2017 model but have not tried Unreal on it just yet.  
Any tips are welcomed.

---

<div class="post-metadata">

**Author:** ![AdrianTheFrog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTheFrog](https://forums.unrealengine.com/u/AdrianTheFrog)\
**Post date:** [July 16, 2021, 12:32am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/16 "2021-07-16T00:32:20Z")

</div>

I ran the code “sudo xcode-select -s /Volumes/Samsung USB/Xcode.app/Contents/Developer” because I have xcode on a usb drive and it returned the error “xcode-select: error: invalid argument ‘USB/Xcode.app/Contents/Developer’  
Usage: xcode-select [options]”

---

<div class="post-metadata">

**Author:** ![AdrianTheFrog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTheFrog](https://forums.unrealengine.com/u/AdrianTheFrog)\
**Post date:** [July 19, 2021, 6:07am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/17 "2021-07-19T06:07:04Z")

</div>

Have you found a solution? I’ve got the same problem

---

<div class="post-metadata">

**Author:** ![a9c0e00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@a9c0e00](https://forums.unrealengine.com/u/a9c0e00)\
**Post date:** [July 20, 2021, 7:54am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/18 "2021-07-20T07:54:57Z")

</div>

this should work it worked for me: write this code is the terminal

sudo xcode-select -s

then go to your Xcode app drag and drop it into the thermal hit enter!!!

---

<div class="post-metadata">

**Author:** ![gmchandarana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmchandarana](https://forums.unrealengine.com/u/gmchandarana)\
**Post date:** [July 24, 2021, 9:03am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/19 "2021-07-24T09:03:33Z")

</div>

I solved this in the following way…

1. Open Xcode
2. Go to Xcode preferences (CMD+,)
3. Find the _Location_ tab
4. In the last drop down (Command line tools), select the appropriate Xcode version. In my case no version was selected and that was casuing the issue.

_Note: The terminal method shown in other answers does the same thing._

---

<div class="post-metadata">

**Author:** ![3D\_Heart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3D\_Heart](https://forums.unrealengine.com/u/3D_Heart)\
**Post date:** [July 25, 2021, 7:03am UTC](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/20 "2021-07-25T07:03:41Z")

</div>

Select that “appropriate Xcode version” helped to open the Unreal. But the Xcode itself is the problem: it seems to take all GPU and the Unreal run extremely slow. My iMac also started to keep a quiet hum. That sounds scary.

[Next page](https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836.md?page=2)
