# Fail to generate Xcode project with GenerateProjectFiles

**URL:** <https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code\
**Created:** [October 9, 2022, 2:09pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676 "2022-10-09T14:09:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![November19th](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/november19th/32/579270_2.png) [@November19th](https://forums.unrealengine.com/u/November19th)\
**Post date:** [October 9, 2022, 2:09pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/1 "2022-10-09T14:09:16Z")

</div>

I’m trying to build the UE5 from the source code. I was good with all the steps until I opened the GenerateProjectFIles.command.

This is what I saw after I opened the UE5.xcworkspace.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/9/38901811b44ab49fe0c5b66346410aa9b40ba6d4.png)

I cannot complete this step since I can’t find **ShaderCompileWorker** :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/9/38901811b44ab49fe0c5b66346410aa9b40ba6d4.png)

Here is the output generated by GenerateProjectFiles.command:  
\*\*Setting up Unreal Engine 5 project files…

Setting up bundled DotNet SDK

Log file: /Users/november19/Documents/Unreal Projects/UnrealEngine/Engine/Programs/UnrealBuildTool/Log\_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Mac, IOS, Android, TVOS.

See the log file for detailed information

Generating data for project indexing…

WARNING: Exception while generating include data for UnrealEditor: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for BaseTextureBuildWorker: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for BenchmarkTool: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for BlankProgram: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for BuildPatchTool: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for ChaosVisualDebugger: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for CrashReportClient: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for CrashReportClientEditor: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for DatasmithUE4ArchiCAD: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for DatasmithFacadeCSharp: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for DatasmithRhino6: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for DatasmithRhino7: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for DatasmithSDK: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for EpicWebHelper: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for HeadlessChaosPerf: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for InterchangeWorker: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for LiveCodingConsole: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for LowLevelTests: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for ShaderCompileWorker: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for SlateViewer: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for SwitchboardListener: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for TestPAL: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for TextureShareSDK: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealFrontend: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealHeaderTool: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealInsights: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealLightmass: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealObjectPtrTool: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealPak: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for UnrealVersionSelector: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

WARNING: Exception while generating include data for ZenDashboard: Platform Mac is not a valid platform to build. Check that the SDK is installed properly.

Generating data for project indexing… 100%

Writing project files… 100%

Saving session…

…copying shared history…

…saving history…truncating history files…

…completed.

[Process completed]\*\*

Does anybody know what is going on? Did I miss something? I went back through the instruction on GitHub several times.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cf97ff921](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cf97ff921](https://forums.unrealengine.com/u/anonymous_user_cf97ff921)\
**Post date:** [October 11, 2022, 1:07am UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/2 "2022-10-11T01:07:16Z")

</div>

I have the same problem as you, @November19th

Source: `sha1 d9d435c`, (tag `5.0.3-release`)  
Xcode: `14.0`  
macOS: `12.6`

I found some hints elsewhere that signing certificates might be the problem, but all my signing certificates are working for other Xcode projects.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cf97ff921](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cf97ff921](https://forums.unrealengine.com/u/anonymous_user_cf97ff921)\
**Post date:** [October 11, 2022, 3:02am UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/3 "2022-10-11T03:02:27Z")

</div>

The problem appears to occur inside `Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll`, I wonder if the source of that DLL is available somewhere? Might be a source of clues.

Some other posts hint that possibly, a missing selection in Xcode → Preferences → Locations → Command Line Tools is the problem. In my case, `Xcode 14.0.1 (14A400)` is properly selected.

[Edit] As I’m sure the experienced Unreal devs know… The source of `UnrealBuildTool` is itself contained in the engine repo. So, when someone can comb through it and find out why it is choking, we might get a solution.

---

<div class="post-metadata">

**Author:** ![ForestZRD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ForestZRD](https://forums.unrealengine.com/u/ForestZRD)\
**Post date:** [October 21, 2022, 9:50am UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/4 "2022-10-21T09:50:35Z")

</div>

Same from my side while generating project files from UE 5.1 source code since yesterday… stuck and seems dead end ☹

---

<div class="post-metadata">

**Author:** ![diazwatson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/diazwatson/32/586621_2.png) [@diazwatson](https://forums.unrealengine.com/u/diazwatson)\
**Post date:** [October 31, 2022, 6:34pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/5 "2022-10-31T18:34:01Z")

</div>

Same here ☹

---

<div class="post-metadata">

**Author:** ![Dynjo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dynjo1](https://forums.unrealengine.com/u/Dynjo1)\
**Post date:** [November 3, 2022, 6:56pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/7 "2022-11-03T18:56:23Z")

</div>

Same problem here

---

<div class="post-metadata">

**Author:** ![HenryxxxxJj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HenryxxxxJj](https://forums.unrealengine.com/u/HenryxxxxJj)\
**Post date:** [November 4, 2022, 3:12pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/8 "2022-11-04T15:12:36Z")

</div>

Same problem need help!

---

<div class="post-metadata">

**Author:** ![Qiong2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Qiong2001](https://forums.unrealengine.com/u/Qiong2001)\
**Post date:** [November 4, 2022, 3:14pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/9 "2022-11-04T15:14:43Z")

</div>

same problem

---

<div class="post-metadata">

**Author:** ![fionagx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fionagx](https://forums.unrealengine.com/u/fionagx)\
**Post date:** [November 4, 2022, 5:05pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/10 "2022-11-04T17:05:32Z")

</div>

I also hit this issue this morning while attempting to set up a fresh clone of the repo for the Unreal Engine. The failed GenerateProjectFiles.command process produces the same logs as OP. Here’s a brief description of my environment:

MacBook Pro 2.9 GHz i9 6-Core  
macOS 13.0 (Ventura)  
Xcode Version 14.1 (14B47b)  
Xcode Command Line Tools are selected correctly in Xcode’s Settings pane

I’m new to trying to build Unreal from source, so I’m currently combing through the repo to try and find where that log message is produced.

---

<div class="post-metadata">

**Author:** ![openheartforger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@openheartforger](https://forums.unrealengine.com/u/openheartforger)\
**Post date:** [November 4, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/11 "2022-11-04T17:08:53Z")

</div>

Same problem.

---

<div class="post-metadata">

**Author:** ![fionagx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fionagx](https://forums.unrealengine.com/u/fionagx)\
**Post date:** [November 4, 2022, 8:29pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/12 "2022-11-04T20:29:33Z")

</div>

A small update: I’ve been doing a bit of spelunking in the build system (again, very unfamiliar with the source, so bear with me).

In `UEBuildPlatformSDK.cs`, there’s a method that provides the “validity” of a platform’s requisite SDK called `PrintSDKInfoAndReturnValidity` (in this case, presumably whatever version of the Xcode SDK is, which in my case is `"14.1"`).

This check returns that the Mac platform’s SDK is “invalid” because the provided max SDK version allowable for platform `"Mac"` is `"13.9.9"`. My guess is that everyone who posted here has updated to Xcode 14.0 or higher.

---

<div class="post-metadata">

**Author:** ![Cosimo\_R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cosimo\_R](https://forums.unrealengine.com/u/Cosimo_R)\
**Post date:** [November 4, 2022, 9:03pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/13 "2022-11-04T21:03:01Z")

</div>

Had the same problem too and yeah, it looks like the problem is with version “14” of Xcode. Considering I didn’t have an older version of Xcode installed, I have downloaded version 13 from here: [https://xcodereleases.com/](https://xcodereleases.com/).  
Then changed the version from Xcode\>Preferences\>Locations\>Command Line Tools. It solved my issue!

---

<div class="post-metadata">

**Author:** ![fionagx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fionagx](https://forums.unrealengine.com/u/fionagx)\
**Post date:** [November 4, 2022, 10:53pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/14 "2022-11-04T22:53:51Z")

</div>

I was curious if I could get UE5 to build at all under Xcode 14.1.

I did a nasty hack in `UEBuildPlatformSDK.cs` to allow v 14.1 on Mac when running `GenerateProjectFiles`. That part seemed to work just fine.

After opening the workspace in Xcode, `ShaderCompileWorker` builds just fine, but the `UE5` build has appeared hung for a couple hours for me.

I’m sure Epic is already working on official support for Xcode 14.x. In the meantime, I guess I’ll install Xcode 13! Thanks all.

---

<div class="post-metadata">

**Author:** ![HenryxxxxJj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HenryxxxxJj](https://forums.unrealengine.com/u/HenryxxxxJj)\
**Post date:** [November 5, 2022, 4:21am UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/15 "2022-11-05T04:21:48Z")

</div>

Good to know, hope we get xcode 14 working on next few releases

---

<div class="post-metadata">

**Author:** ![November19th](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/november19th/32/579270_2.png) [@November19th](https://forums.unrealengine.com/u/November19th)\
**Post date:** [November 5, 2022, 7:11pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/16 "2022-11-05T19:11:18Z")

</div>

Thank you so much for sharing this!!!

---

<div class="post-metadata">

**Author:** ![Dynjo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dynjo1](https://forums.unrealengine.com/u/Dynjo1)\
**Post date:** [November 6, 2022, 5:23pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/17 "2022-11-06T17:23:04Z")

</div>

This fixed it for me too, managed to build the 5.1 branch on Ventura as Apple Silicon with no issues. Thanks!

---

<div class="post-metadata">

**Author:** ![Twinkle512512](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Twinkle512512](https://forums.unrealengine.com/u/Twinkle512512)\
**Post date:** [November 7, 2022, 8:14am UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/18 "2022-11-07T08:14:25Z")

</div>

I did what you said, but after I download Xcode 13(13.41),it said I can’t run Xcode 13 on Ventura. I tried use terminal to run Xcode 13, but in the command line tools part I can’t find Xcode 13(only Xcode 14). Could you please tell me how you fix this issue?

---

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [November 7, 2022, 6:09pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/19 "2022-11-07T18:09:27Z")

</div>

This issue is fixed by a QFE for 5.0.3 (“_Platform Mac is not a valid platform to build_” error with Xcode 14): [http://cdn.unrealengine.com/qfe/QFE-5.0-Xcode14Support-CL-22337428-PF-22380667-Job-cbd57f.zip](http://cdn.unrealengine.com/qfe/QFE-5.0-Xcode14Support-CL-22337428-PF-22380667-Job-cbd57f.zip)

Details in this post (please read it before applying the QFE): [Current Available Quick-Fix Solutions](https://forums.unrealengine.com/t/current-available-quick-fix-solutions/2829)

---

<div class="post-metadata">

**Author:** ![735333df6d5b4784be24](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@735333df6d5b4784be24](https://forums.unrealengine.com/u/735333df6d5b4784be24)\
**Post date:** [November 8, 2022, 8:09am UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/20 "2022-11-08T08:09:39Z")

</div>

@Kafumanto this solves above all issue, just by a simple click, very nice!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9cb2000c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9cb2000c](https://forums.unrealengine.com/u/anonymous_user_9cb2000c)\
**Post date:** [November 10, 2022, 8:05pm UTC](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676/21 "2022-11-10T20:05:56Z")

</div>

@Kafumanto I am getting the following error when attempting to install the QFE:

“UnrealQFEInstaller” is damaged and can’t be opened. You should move it to the Trash.

Have you faced similar issue?

[Next page](https://forums.unrealengine.com/t/fail-to-generate-xcode-project-with-generateprojectfiles/665676.md?page=2)
