You are currently viewing content for use with Unreal Engine software. See all AWS GameKit documentation
Package a game for iOS
When packaging your game for iOS, complete the following tasks.
- Unreal Engine
For Unreal Engine game projects, follow the Unreal Engine project packaging instructions
, with the following modifications. Before you start the packaging setup process, verify your current AWS GameKit plugin configuration. The Unreal packaging process will use whichever AWS GameKit configuration settings are currently active. In the Unreal Editor toolbar, open Edit, Project Settings and go to the AwsGameKit plugin section. In the Environment and Credentials section, verify the selections for game title, environment, and region.
Complete the Unreal packaging step "Setting a Game Default Map
". Add the AWS GameKit configuration in the packaging settings.
In the Unreal Editor toolbar, choose Edit, Project Settings, Packaging, and expand the Packaging advanced settings, as shown.
In Additional Non-Asset Directories to Package, add an array element and enter the directory
certs
. This directory is located in your game project files underContent
.In Additional Non-Asset Directories to Copy, add an array element and enter the directory
GameKitConfig
. This directory is located in your game project files underContent
.
-
Open the
Target.cs
file, located in theSource
directory of your game project files. Add the following lines to the target constructor.if (Target.Platform == UnrealTargetPlatform.IOS){ bOverrideBuildEnvironment = true; GlobalDefinitions.Add("FORCE_ANSI_ALLOCATOR=1");}
This update forces the use of
FMallocAnsi
when building for iOS. See the Unreal Engine documentation topic Targetsfor more information on UnrealBuildTool target files. When you're ready to package your game for shipping, continue to the Unreal packaging step "Creating Packages
" to package the game for iOS. -
Connect your iOS device, and select Launch.