Description

When packaging for iOS on a Mac, the default level for a project will always be included in the packaged project even if it was not selected to be cooked and packaged. The expected behavior is that only the levels that are selected to be cooked should be included in the package.

Steps to Reproduce

SETUP:
This issue only appears to reliably reproduce on a Mac.

REPRO:

  1. Create a new Blank Blueprint project.
  2. Save the default level as NewMap.
  3. Set NewMap as the default level for both the Editor Startup Map and the Game Default Map.
  4. Create two or more new maps in the project.
  5. Open the Project Launcher window.
  6. Create a new profile.
  7. Make sure Build is unchecked.
  8. Select By the book for cooking.
  9. Select iOS for the platform.
  10. Select one of the maps other than NewMap to be cooked.
  11. Make sure that a Pak file is not being created.
  12. Select the Package & store locally packaging option.
  13. Check the box to archive, and select a location to save the archive to.
  14. Select the Do not deploy option.
  15. Launch the profile.
  16. Once the profile completes, navigate to the location where the archive was saved from step 13.
  17. Change the file extension from .ipa to .zip.
  18. Unzip the file.
  19. Right-click on UE4Game and select Show Package Contents.
  20. Navigate to cookeddata/<project>/content.

RESULT:
The content folder contains data for the level selected to be cooked in step 10, as well as data for the NewMap level that is the game default map.

EXPECTED:
The content folder only contains data for the level selected to be cooked in step 10.

WORKAROUND:
Clear the default level for the game before packaging.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-51115 in the post.

1
Login to Vote

Won't Fix
CreatedOct 11, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue