# iOS SDK 17 Packaging Failures in Unreal Engine 5.1.1

**URL:** <https://forums.unrealengine.com/t/ios-sdk-17-packaging-failures-in-unreal-engine-5-1-1/1836022>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 2, 2024, 7:14am UTC](https://forums.unrealengine.com/t/ios-sdk-17-packaging-failures-in-unreal-engine-5-1-1/1836022 "2024-05-02T07:14:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hhlee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hhlee](https://forums.unrealengine.com/u/hhlee)\
**Post date:** [July 18, 2024, 9:36am UTC](https://forums.unrealengine.com/t/ios-sdk-17-packaging-failures-in-unreal-engine-5-1-1/1836022/4 "2024-07-18T09:36:19Z")

</div>

I am also using Unreal 5.1.1 and have resolved this issue with the following steps. Hope it helps anyone else facing similar issue with the new IOS SDK 17 requirement from App Store.

1. In order to build IOS SDK 17, your xcode needs to be at least version 15, and in order to install xcode 15.x, you may need to upgrade your MacOS. See this page for version requirements: [Xcode - Support - Apple Developer](https://developer.apple.com/support/xcode/)

Personally I just got the latest at the time of writing (xcode 15.4 for Sonoma 14).  
I had some issues with updating xcode from the store, so I had to follow some guide on how to completely removing my xcode and reinstalling the latest stable release.

**Take note that once you perform the updates, you can no longer open UE Editor. You have been warned!!**

2 . Once MacOS and Xcode are updated to the correct version, you need to work with UE program source (for UEBuildTool only) to make a minor modification in order to perform the packaging for the new SDK.

This is because the SDK checker in the build tool performs SDK version validation and restricts it to 14.9.9 as its max version. This version number is actually the Xcode version (not the Mac or IOS SDK). Since the new xcode version is 15.x, this validation will fail.

1. Go to your Unreal installation directory. Typically it’s:  
~/Shared/Epic Games/UE\_5.1

Modify and save changes for this file: Engine/Source/Programs/UnrealBuildTool/Platform/Mac/ApplePlatformSDK.Version.cs

Change

> MaxVersion = “14.9.9”

to

> MaxVersion = “15.9.9”

1. Fire up a terminal and enter the following commands:

> cd ~/Shared/Epic Games/UE\_5.1/Engine/Build/BatchFiles/Mac  
> dotnet build …/…/…/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj -c Development

1. Copy the following files from:  
~/Shared/Epic Games/UE\_5.1/Binaries/DotNet/UnrealBuildTool  
to  
~/Shared/Epic Games/UE\_5.1/Binaries/DotNet/AutomationTool

> UnrealBuildTool  
> UnrealBuildTool.dll  
> UnrealBuildTool.pdb  
> UnrealBuildTool.xml  
> EpicGames.Build.dll  
> EpicGames.Build.pdb

In theory, you could also dotnet build AutomationTool project, but these were the steps I took, so I just listed as it is.

If you want to revert steps 4 and 5, you could of course go to Epic Launcher and repair or reinstall the engine.

1. Next, you need to go to your Project (or Game) folder, and modify the Editor.Target.cs and Target.cs files due to changes in the new xcode toolchain. Or compilation will fail.  
Add the following check at the top of the constructor for both files:

> if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.IOS)  
> {  
> bOverrideBuildEnvironment = true;  
> AdditionalCompilerArguments = “-Wno-error -Wno-deprecated-builtins”;  
> }

For this step, credits to:

> [@\-Wdeprecated-builtins Error when trying to build UE4 on Xcode 15.0.1](https://forums.unrealengine.com/t/wdeprecated-builtins-error-when-trying-to-build-ue4-on-xcode-15-0-1/1404880):
>
> Hey guys, We have been trying to create a mac build for our project that’s currently using UE4 Version: 4.25.4 and have been facing the following error. /Users/Shared/Epic Games/UE\_4.25/Engine/Source/Runtime/Core/Public/Templates/IsTriviallyDestructible.h:18:18: builtin has\_trivial\_destructor is deprecated; use is\_trivially\_destructible instead [-Werror,-Wdeprecated-builtins] I have tried to suppress the warning without much luck. Has anyone else been able to get their ue4 project to build on…

Now you should be able to open your uproject file normally and package for IOS. Hope this works for whoever is seeing this.

---

_[View the full topic](https://forums.unrealengine.com/t/ios-sdk-17-packaging-failures-in-unreal-engine-5-1-1/1836022)._
