# Mac can't generate xcode project files

**URL:** <https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211>\
**Category:** Platform & Builds\
**Tags:** MAC, unreal-engine, UE4-27, question\
**Created:** [March 16, 2022, 2:29am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211 "2022-03-16T02:29:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jozzhn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jozzhn](https://forums.unrealengine.com/u/Jozzhn)\
**Post date:** [March 16, 2022, 2:29am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/1 "2022-03-16T02:29:43Z")

</div>

I use Macos 11.6.4, XCode13.2, Unreal Engine 4.27.2(download from epic games launcher).

Right click on the .uproject file and click on Generate XCode project, it will open the terminal but do nothing.

If I write command to run .sh to generate xcode project, it works. But it is too stupid.

---

<div class="post-metadata">

**Author:** ![gguolg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gguolg](https://forums.unrealengine.com/u/gguolg)\
**Post date:** [March 25, 2022, 3:31am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/2 "2022-03-25T03:31:22Z")

</div>

I have exactly same problem!

---

<div class="post-metadata">

**Author:** ![Jozzhn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jozzhn](https://forums.unrealengine.com/u/Jozzhn)\
**Post date:** [June 10, 2022, 8:19am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/3 "2022-06-10T08:19:11Z")

</div>

I tried manay ways and can not solve this problem.  
But finally I found that Rider for Unreal can automatically generate xcode project when you modify any code, so I choose to use Rider instead of XCode.

---

<div class="post-metadata">

**Author:** ![grsthrt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grsthrt](https://forums.unrealengine.com/u/grsthrt)\
**Post date:** [July 15, 2022, 7:57am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/4 "2022-07-15T07:57:20Z")

</div>

How does rider open the project??? no sln??

---

<div class="post-metadata">

**Author:** ![Jozzhn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jozzhn](https://forums.unrealengine.com/u/Jozzhn)\
**Post date:** [July 17, 2022, 4:27pm UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/5 "2022-07-17T16:27:44Z")

</div>

Rider can open \*.uproject file on mac. Or just open the project folder in rider. It will recognize.

---

<div class="post-metadata">

**Author:** ![HollowWorldGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HollowWorldGames](https://forums.unrealengine.com/u/HollowWorldGames)\
**Post date:** [July 17, 2022, 8:28pm UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/6 "2022-07-17T20:28:05Z")

</div>

sh “/Users/Shared/Epic Games/UE\_5.0/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh” -project=“/Path/To/Project/TestProj/TestProj.uproject” -game

this should do it from terminal.

---

<div class="post-metadata">

**Author:** ![PRESSURE2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRESSURE2000](https://forums.unrealengine.com/u/PRESSURE2000)\
**Post date:** [October 15, 2022, 1:48am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/7 "2022-10-15T01:48:53Z")

</div>

what if my project is on another external hard drive?

what would the code look like for that?

---

<div class="post-metadata">

**Author:** ![cmersereau](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cmersereau](https://forums.unrealengine.com/u/cmersereau)\
**Post date:** [April 13, 2023, 1:31am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/8 "2023-04-13T01:31:26Z")

</div>

Just some small notes for people using this command. It works for me, but I’ve found that I need to remove the quotation marks. Maybe that’s obvious to most folks, but wasn’t to me at first.

Also, you can use a relative path for the .sh file (i.e ./path/from/current/directory/GenerateProjectFiles.sh) but I was only able to make the project path work if starting the path from /Users (i.e. /Users/myuser/TestProj/TestProj.uproject)

---

<div class="post-metadata">

**Author:** ![ltmedic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ltmedic](https://forums.unrealengine.com/u/ltmedic)\
**Post date:** [April 14, 2023, 10:48am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/9 "2023-04-14T10:48:37Z")

</div>

THANK YOU!!!

---

<div class="post-metadata">

**Author:** ![chiltonwebb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chiltonwebb](https://forums.unrealengine.com/u/chiltonwebb)\
**Post date:** [November 19, 2023, 10:31am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/10 "2023-11-19T10:31:14Z")

</div>

This worked for me…

> sh /Users/Shared/Epic\ Games/UE\_5.2/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh -project=/Users/chilton/Documents/Unreal\ Projects/SeaPluPlus/SeaPluPlus.uproject -game

---

<div class="post-metadata">

**Author:** ![dragonqk19811](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dragonqk19811/32/621507_2.png) [@dragonqk19811](https://forums.unrealengine.com/u/dragonqk19811)\
**Post date:** [July 11, 2024, 8:22am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/11 "2024-07-11T08:22:37Z")

</div>

external hard drive works the same

---

<div class="post-metadata">

**Author:** ![emals789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emals789](https://forums.unrealengine.com/u/emals789)\
**Post date:** [August 20, 2024, 4:14pm UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/12 "2024-08-20T16:14:04Z")

</div>

Thank you! This tricked worked for me on UE 5.4.3, using macOS Sonoma

---

<div class="post-metadata">

**Author:** ![Kulagin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kulagin](https://forums.unrealengine.com/u/Kulagin)\
**Post date:** [September 11, 2024, 1:41pm UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/13 "2024-09-11T13:41:35Z")

</div>

2024 still the same issue on UE 5.4.4 and Sonoma 14.5. Apple / Epic have to fix this. While this works, it’s a big pain in the ■■■ to do: first of all, the address to the engine gets hardcoded, so you can’t just create this file and run it on all machines. Then if you want to generalize this, you have to spend god knows how much time to generalize this and make it work on any mac machine.

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [December 1, 2024, 8:39am UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/14 "2024-12-01T08:39:41Z")

</div>

In the Unreal source code (UE5.5) it is defined in file …/UnrealEngine/Engine/Source/Programs/Mac/UnrealEditorServices/Resources/Mac/Info.plist.

Maybe it doesn’t work because it is blocked by another security restriction from Apple.

 ![Screenshot 2024-12-01 at 09.36.01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/d/07d3a92694d7fc17a4a1ab3a9d6ca32bdc772e38.png)

---

<div class="post-metadata">

**Author:** ![Giometric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Giometric](https://forums.unrealengine.com/u/Giometric)\
**Post date:** [July 16, 2026, 4:10pm UTC](https://forums.unrealengine.com/t/mac-cant-generate-xcode-project-files/507211/15 "2026-07-16T16:10:23Z")

</div>

Found an actual fix on my end; there’s a couple different manifestations of this problem that I’ve seen, including the ‘Generate Xcode project’ simply doing nothing at all, or sometimes running but claiming that the SDK setup isn’t correct, then exiting without generating anything. It’s caused by Xcode and toolchain updates that changed your primary Xcode and/or LLVM version to one that Unreal doesn’t know about.

Unreal has a config file at (assuming default install location for UE 5.8, adjust to yours as needed):  
`/Users/Shared/Epic Games/UE_5.8/Engine/Config/Apple/Apple_SDK.json`

This file lists the allowed Xcode versions (under `"//1": "Xcode versions:"`), as well as an Xcode-to-LLVM version map (`"AppleVersionToLLVMVersions"`). Both of these must be set correctly and contain the version of Xcode and LLVM that are on your system, or generating project files doesn’t work (not sure why Unreal doesn’t fall back to at least _trying_ with whatever version you do have and emitting a warning). Epic updates this file from time to time, but sometimes a macOS update comes through that causes this to be a little out of date. In my case, I had to add `"26.6.0-21.1.6"`to the `AppleVersionToLLVMVersions` list.

Another way around this is to additionally install an older, compatible version of Xcode alongside your main one that’s getting updated. IIRC you must also ‘select’ the correct Xcode / build tools via the Xcode settings menu or the `xcode-select` command line tool. This is sometimes what you need when using an older version of Unreal - sometimes just updating Apple\_SDK.json isn’t enough because the toolchain is too different and actually causes compile errors. However, it’s not preferred IMO because often a given version of macOS won’t run Xcode versions that are much older than it at all without some hackery.
