Package a game for iOS - AWS GameKit

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.

  1. 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.

  2. Complete the Unreal packaging step "Setting a Game Default Map".

  3. Add the AWS GameKit configuration in the packaging settings.

    1. In the Unreal Editor toolbar, choose Edit, Project Settings, Packaging, and expand the Packaging advanced settings, as shown.

    2. 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 under Content.

    3. 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 under Content.

  4. Open the Target.cs file, located in the Source 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 Targets for more information on UnrealBuildTool target files.

  5. When you're ready to package your game for shipping, continue to the Unreal packaging step "Creating Packages" to package the game for iOS.

  6. Connect your iOS device, and select Launch.