Unable to package iOS game for distribution on UE 5.8 (reproducible with blank/empty project)

When you attempt to package an iOS game in Unreal Engine 5.8, packaging fails with:

```

[2026.07.06-00.06.29:973][488]UATHelper: Packaging (IOS): /bin/sh -c /Users/build/Library/Developer/Xcode/DerivedData/EmptyProject_IOS_EmptyProject-gdvqfyksxoxhubhioozuphcorxvg/ArchiveIntermediates/EmptyProject/IntermediateBuildFilesPath/EmptyProject\\\ \\\(IOS\\\).build/IOS/EmptyProject.build/Script-55710CA60F1F7D138FA2171A.sh

[2026.07.06-00.06.32:663][539]UATHelper: Packaging (IOS): Copying executable and any standalone dylibs into /Users/build/Library/Developer/Xcode/DerivedData/EmptyProject_IOS_EmptyProject-gdvqfyksxoxhubhioozuphcorxvg/ArchiveIntermediates/EmptyProject/BuildProductsPath/IOS/EmptyProject-IOS-Shipping.app but do not overwrite unless src is newer

[2026.07.06-00.06.32:663][539]UATHelper: Packaging (IOS): Syncing /Volumes/Build/Work/UE5/Redpoint/CustomerRepro/EmptyProject/Saved/StagedBuilds/IOS/uecommandline.txt to /Users/build/Library/Developer/Xcode/DerivedData/EmptyProject_IOS_EmptyProject-gdvqfyksxoxhubhioozuphcorxvg/ArchiveIntermediates/EmptyProject/BuildProductsPath/IOS/EmptyProject-IOS-Shipping.app

[2026.07.06-00.06.32:663][539]UATHelper: Packaging (IOS): cp: /Users/build/Library/Developer/Xcode/DerivedData/EmptyProject_IOS_EmptyProject-gdvqfyksxoxhubhioozuphcorxvg/ArchiveIntermediates/EmptyProject/BuildProductsPath/IOS/EmptyProject-IOS-Shipping.app: Not a directory

[2026.07.06-00.06.32:663][539]UATHelper: Packaging (IOS): Command PhaseScriptExecution failed with a nonzero exit code

```

This is packaging with:

  • Xcode 26.0.0
  • macOS 15.7.7
  • UE 5.8

I suspect this might not happen on Xcode 16, though I haven’t gone back and explicitly tested Xcode 16 again. However, Apple requires iOS applications to be built with Xcode 26 now in order to pass submission requirements so we need packaging to work under Xcode 26.

See attached for the full UBT packaging log.

[Attachment Removed]

Steps to Reproduce

  • Create an empty UE project, and configure the basic settings for iOS packaging (bundle name etc)
  • Turn on “For Distribution” to package it
  • In the editor, attempt to package for iOS using Xcode 26
  • Observe packaging failure in logs
    [Attachment Removed]

Hi June,

I am not seeing the issue on this end. Can you confirm that you have set the build configuration to Shipping (Platforms -> Package -> Shipping) as well as setting the Project setting ‘For Distribution’?

Best regards.

[Attachment Removed]

Hi June,

Can you confirm if the issue occurs for you in a Launcher install of 5.8? On this end, launcher also worked as expected, though on latest Xcode (26.6). Though unlikely the cause of your issue, the recommended Xcode version for 5.8 is 26.1.1.

Best regards.

[Attachment Removed]

Someone else running into this problem mentioned that it might be a case sensitivity issue:

> There was an ios/IOS case difference in the PLCrashReporter and Ogg folders. Fixed it manually and the build progressed. Checked the Mac’s case sensitivity too.

It should be noted that our engine install/projects are on an external NVMe drive (mounted as “Build”), not the internal macOS drive.

[Image Removed]

[Attachment Removed]

Hi June,

UE does indeed require that both editor and projects live on a case insensitive partition (Standard APFS). Case sensitive partition will trigger a variety of errors.

Best regards.

[Attachment Removed]

Hi June,

Do you see this begaviour specifically on a Shipping confirguration or equally with a Development/Debug packaging build?

Best regards.

[Attachment Removed]

Hi June,

For good measure, I did a fresh source build of UE 5.8.0 and was able to package a distribution build of EmptyProject out of the box.

Can you confirm the contents of /Users/build/Library/Developer/Xcode/DerivedData/EmptyProject_IOS_EmptyProject-gdvqfyksxoxhubhioozuphcorxvg/ArchiveIntermediates/EmptyProject/BuildProductsPath/IOS/ when the failure occurs?

Best regards.

[Attachment Removed]

The error

UATHelper: Error: Packaging (IOS): System.IO.DirectoryNotFoundException: Could not find a part of the path ‘/Users/build/Library/Developer/Xcode/Archives’.

is puzzling and seems it may be the cause. Does that path exist if you try to

open /Users/build/Library/Developer/Xcode/Archivesfrom Terminal?

Best regards.

[Attachment Removed]

Hi June,

Those look like the default output directories for Xcode. Does manually creating the directory help at all?

mkdir -p ~/Library/Developer/Xcode/Archives

Best regards.

[Attachment Removed]

Hi June,

Apologies for the tardy response and the lengthy back and forth..

It turns out that this is an issue with the behaviour of the cp -R command against a destination symbolic link on Mac OS 15. The issue can be resolved by upgrading to Mac OS 26. Alternatively, you can edit Engine/Source/Programs/UnrealBuildTool/ProjectFiles/Xcode/XcodeProject.cs replacing:

"cp -r \\\"${UPL_BUILD_DIR}\\\" \\\"${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}\\\"",with

"rsync -a \\\"${UPL_BUILD_DIR}\\\" \\\"${CONFIGURATION_BUILD_DIR}/${CONTENTS_FOLDER_PATH}\\\"",and rebuild UnrealBuildTool *UBT).

We will look at getting this fix into the 5.8.5 release.

Best regards.

[Attachment Removed]

I can confirm that Shipping is selected and I can still reproduce the error. See https://youtu.be/\-gKoAu6UzoU for a video recording of the project settings and subsequent packaging failure.

[Attachment Removed]

Apologies for the delay replying here. I was able to reproduce this on 26.1.1 using the same engine version from source control. I have not tried the launcher install yet. Please see attached for the logs from a 26.1.1 Xcode (ignore the path that says 26.1.0 - it is indeed 26.1.1 but the folder name is incorrect due to the way our scripts handle patch numbers when installing Xcode).

[Attachment Removed]

Not sure why it says file is no longer available above. Let me try attaching it again.

[Attachment Removed]

The other person further clarified:

> No, I was only able to bypass the case-sensitivity issue in the PLCrashReporter and Ogg directories. I can’t do anything about the PhaseScriptExecution error. When the packaging starts, everything goes back to how it was and it fails to work. So no, I couldn’t fix it.

[Attachment Removed]

I’ve checked and both disks are case insensitive partitions:

[Image Removed]

(This will show “APFS Case-Sensitive” if case sensitivity was enabled)

[Attachment Removed]

It’s specifically Shipping configurations that are affected. Dev/Debug works fine.

[Attachment Removed]

See attached for a ZIP of the latest iOS packaging log, and within the outer ZIP, a ZIP of the BuildProductsPath folder after the package failure.

[Attachment Removed]

Apologies for the long delay in replies as I am having to juggle multiple things at the moment.

That directory doesn’t exist at all. [Image Removed]

[Attachment Removed]

Just to add to this, inside Xcode that is configured as the path to output archives at, so it’s not like a misconfiguration from the default:

[Image Removed]

[Attachment Removed]