# Generate XCode Project doesnt do anything

**URL:** <https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [March 4, 2019, 11:44pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149 "2019-03-04T23:44:21Z")\
**Posts on this page:** 15\
**Page:** 1

<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 4, 2019, 11:44pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/1 "2019-03-04T23:44:21Z")

</div>

I just moved my project over from my windows pc to my mac. I already made the provisioning profile, bundlie id, certificate, etc. Im trying to get it on testflight but i need to get it open in Xcode to do that. when i right click the uproject file in Finder and choose Generate XCode Project, nothing happens… how do i fix this?

---

<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 5, 2019, 12:12am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/2 "2019-03-05T00:12:33Z")

</div>

That’s not the workflow I use.

1. Sync project to Mac
2. Go to [developer.apple.com](http://developer.apple.com) and create all of the certificates and provisioning profiles, add your devices, etc. Create both development and distribution profiles.
3. Go to XCode preferences-\>accounts and log in to your developer account. Click “Download manual profiles”.
4. Go to iTunes Connect and create your application using your Bundle ID
5. Load UE and select the distribution certs for signing. Set your app to “shipping” and “distribution”. Explicitly set your bundle ID (com.mygame.whatever). Build it.
6. Load up the Application Loader program on your Mac (maybe via XCode) and upload your .ipa file.

Once you’ve uploaded it to Testflight, it’ll go through a review process the first time. At this point you can add individual testers (get them to make an iTunes Connect account) or you can create external test groups. External test groups require ANOTHER round of review the first time and it takes longer, but it’s nice in that you can choose to release builds to them or not even if they’re uploaded to Testflight.

At no point do you need to do anything else in XCode. You don’t even need your project open.

The main thing I use XCode for besides downloading the certs is to deploy already-built dev builds to the device, since the launch button doesn’t deploy everything.

---

<div class="post-metadata">

**Author:** ![Saltylike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saltylike/32/875361_2.png) [@Saltylike](https://forums.unrealengine.com/u/Saltylike)\
**Post date:** [April 4, 2019, 3:52am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/3 "2019-04-04T03:52:07Z")

</div>

I facing the same issue, i’m working in 2 projects and the contextual menu option fails on both (same engine version), but for the first one i able to generate the xcode project running the GenerateProjectFiles.sh command, sadly it does not work in my second project. I tried to fix this issue since few months without any luck.

In case it help you, open terminal and run:

> `sh "/{PATH_TO_ENGINE}/unrealEngine-4.21.2-release/engine/build/batchfiles/Mac/GenerateProjectFiles.sh" -project="/{PATH_TO_PROJECT}/{UPROJECT_FILENAME}.uproject" -game`

---

<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:** [April 11, 2019, 11:33pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/4 "2019-04-11T23:33:44Z")

</div>

> [@ARCoded](#):
>
> I facing the same issue, i’m working in 2 projects and the contextual menu option fails on both (same engine version), but for the first one i able to generate the xcode project running the GenerateProjectFiles.sh command, sadly it does not work in my second project. I tried to fix this issue since few months without any luck.
> 
> In case it help you, open terminal and run:
> 
> sh “/{PATH\_TO\_ENGINE}/unrealEngine-4.21.2-release/engine/build/batchfiles/Mac/GenerateProjectFiles.sh” -project=“/{PATH\_TO\_PROJECT}/{UPROJECT\_FILENAME}.uproject” -game

I followed the stemps from Antidamage above and it worked.

---

<div class="post-metadata">

**Author:** ![Gerigory](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gerigory](https://forums.unrealengine.com/u/Gerigory)\
**Post date:** [June 20, 2020, 2:55am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/5 "2020-06-20T02:55:28Z")

</div>

> [@ARCoded](#):
>
> I facing the same issue, i’m working in 2 projects and the contextual menu option fails on both (same engine version), but for the first one i able to generate the xcode project running the GenerateProjectFiles.sh command, sadly it does not work in my second project. I tried to fix this issue since few months without any luck.
> 
> In case it help you, open terminal and run:
> 
> sh “/{PATH\_TO\_ENGINE}/unrealEngine-4.21.2-release/engine/build/batchfiles/Mac/GenerateProjectFiles.sh” -project=“/{PATH\_TO\_PROJECT}/{UPROJECT\_FILENAME}.uproject” -game

cmd works great, thx a lot

---

<div class="post-metadata">

**Author:** ![jdgfkf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdgfkf](https://forums.unrealengine.com/u/jdgfkf)\
**Post date:** [December 31, 2021, 4:09pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/6 "2021-12-31T16:09:39Z")

</div>

Hi, I have a similar issue here, but the terminal command does not work, it always tells me that :

“Unable to find project file based on argument” and the file path I wrote.

Now I tried to copy the project elsewhere, to be sure I did nothing wrong I copy the path by ctrl alt click on it to copy the project file path but nothing changes. If I tried to cd + the path copied, it works.

If I try to directly generate xcode on the project files it just opens a terminal windows and does nothing else.

---

<div class="post-metadata">

**Author:** ![Automaticow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Automaticow](https://forums.unrealengine.com/u/Automaticow)\
**Post date:** [December 9, 2022, 9:10am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/7 "2022-12-09T09:10:59Z")

</div>

This does not seem to work on UE5.1. It creates a xcode-project, but it only contains the editor (Eg. “UE5”) project, not the game itself ☹

I have been trying to dig into this, but with no luck.

---

<div class="post-metadata">

**Author:** ![dukkyofficial](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dukkyofficial](https://forums.unrealengine.com/u/dukkyofficial)\
**Post date:** [January 17, 2023, 2:14am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/8 "2023-01-17T02:14:23Z")

</div>

Any Solutions for this? on 5.1, It still just brings the default project into XCode

---

<div class="post-metadata">

**Author:** ![arkadiuszrataj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arkadiuszrataj](https://forums.unrealengine.com/u/arkadiuszrataj)\
**Post date:** [January 26, 2023, 6:30am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/9 "2023-01-26T06:30:31Z")

</div>

Try to install the latest QFE, that solves some issues with 5.1 on Mac. I had a similar problem - couldn’t generate Xcode project - and it resolved my issue.

> [@Current Available Quick-Fix Solutions](https://forums.unrealengine.com/t/current-available-quick-fix-solutions/2829):
>
> Since the launch of Unreal Engine, we have been working as quickly as possible to resolve important issues as they have been reported to us. Once an important fix has been made, we sometimes respond directly to the affected users by providing a QFE (“Quick Fix Engineering”) which we share here on the forums. These QFEs eventually get rolled into the hotfixes and major version release updates that we provide for all, but until those updates we want to make sure that they are available to the sel…

---

<div class="post-metadata">

**Author:** ![Asymmetric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Asymmetric](https://forums.unrealengine.com/u/Asymmetric)\
**Post date:** [June 8, 2023, 6:58am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/10 "2023-06-08T06:58:03Z")

</div>

This worked fine for me with 5.2! Thank you!

---

<div class="post-metadata">

**Author:** ![kolja\_k1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kolja\_k1](https://forums.unrealengine.com/u/kolja_k1)\
**Post date:** [June 14, 2023, 6:36pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/11 "2023-06-14T18:36:42Z")

</div>

With an existing project, the shell command didn’t work for me at first (complained about platform not being set up correctly). So I created a new project from the 1st person template on my Mac, to see if that would build (it did). Did an iOS build, too.

_Then_ I ran the shell command again on my existing project, and it worked. (UE 5.1.1)

---

<div class="post-metadata">

**Author:** ![coolnames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@coolnames](https://forums.unrealengine.com/u/coolnames)\
**Post date:** [July 23, 2023, 5:32pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/12 "2023-07-23T17:32:54Z")

</div>

My issues came from copying projects from my Windows workstation over to my Mac Studio (M2 chip if that matters).

As others have said, right clicking on the \*.uproject file → Services → Generate Xcode Project did not seem to do anything.

I used a combination of advice from earlier posts to get a \*.xcodeproj file for my project:

I opened Terminal and used the cd command to navigate to the folder that had the GenerateProjectFiles.sh file. For me, that was this directory:  
//Users/Shared/Epic\ Games/UE\_5.2/Engine/Build/BatchFiles/Mac/

In Terminal, I entered the following command:  
sh GenerateProjectFiles.sh -project=“//Users/coolnames/Desktop/TestProject/TestProject.uproject” -game

As long as no errors occur when running the sh, your Xcode project files should have been generated.

Now, as others have said, the \*.xcworkspace file in the project directory only had the UE5 engine present and not the project files when opening in Xcode.

But, if you navigate from your project folder to /Intermediate/ProjectFilesIOS/  
you will find your \*.xcodeproj file.

I was able to open that file into Xcode and build/sign my project.

Good luck!

---

<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:** [March 8, 2024, 12:08am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/13 "2024-03-08T00:08:22Z")

</div>

As this is the first post that shows up on a Google search for this topic, I wanted to update this with the latest info. I did not see a link to the info on Epic’s site and ChatGPT etc. were completely useless.

The trick is to use an engine you actually have, and to either escape the spaces or put the whole path in quotes.

So here’s what worked for me:

sh “/Users/Shared/Epic Games/UE\_5.3/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh” /Users/chilton/Documents/Unreal\ Projects/yourproject/yourproject.uproject

-Chilton

---

<div class="post-metadata">

**Author:** ![VMukesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VMukesh](https://forums.unrealengine.com/u/VMukesh)\
**Post date:** [March 19, 2024, 7:45am UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/14 "2024-03-19T07:45:25Z")

</div>

Thanks, this worked for ue5.3 project

---

<div class="post-metadata">

**Author:** ![dBugSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dBugSlayer](https://forums.unrealengine.com/u/dBugSlayer)\
**Post date:** [July 26, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/generate-xcode-project-doesnt-do-anything/123149/15 "2024-07-26T16:35:42Z")

</div>

Not only that. But you need to pass the full project path. The script currently breaks otherwise.

```auto
% pwd
~/GameProject

% /Users/Shared/Epic\ Games/UE_5.4/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh GameProject.uproject

Setting up Unreal Engine project files...

Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.4/Engine/Build/BatchFiles/Mac/../../../Binaries/ThirdParty/DotNet/6.0.302/mac-arm64
Log file: ~/Library/Application Support/Epic/UnrealBuildTool/Log_GPF.txt
Total execution time: 0.37 seconds
Unhandled exception: System.Exception: Unable to find project file based on argument yourproject.uproject
   at UnrealBuildTool.GenerateProjectFilesMode.TryParseProjectFileArgument(CommandLineArguments Arguments, ILogger Logger, FileReference& ProjectFile) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 325
   at UnrealBuildTool.GenerateProjectFilesMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 82
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 660

% pwd
~/GameProject

% /Users/Shared/Epic\ Games/UE_5.4/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh ~/Dev/GameProject/GameProject.uproject

Setting up Unreal Engine project files...

... <clipped output to keep it short>

Writing project files... 100%

Generating QueryTargets data for editor...
Total execution time: 8.83 seconds

```
