Ship to the App Store

Have an Agent make an Apple-hosted asset pack, upload its files to App Store Connect and send it to App Review, so your app downloads the content after it's installed.

An asset pack holds content your app downloads after it’s installed, such as a game’s extra levels (see Make a game), videos or large images. Apple hosts it: you upload it to App Store Connect apart from the app’s builds, and people’s devices download it separately from the app. Apple’s overview of Apple-hosted asset packs ↗ says which system versions can use them.

Before you ask

  • The app has to download the pack itself. A pack in App Store Connect doesn’t change your app: the app needs code that uses Apple’s Background Assets ↗ framework to get the pack and open what’s in it. Ask the Agent to add that to the app in the same request.
  • The content. Send it to the Agent in the chat (see Send photos, files and sketches to an Agent), or tell it which files in the Project go in the pack. Apple’s overview says packs are made with a packaging tool in Xcode, or with Apple’s tools for Linux.
  • The app needs its App Store Connect record. See Create your app’s App Store Connect record.

Make the pack and upload it

Ask in the Project’s chat, for example:

Move the bonus levels into an asset pack, upload it to App Store Connect, and make the app download it after it's installed.
  1. The Agent creates the pack in App Store Connect with an identifier, for example com.example.game.bonuslevels (asc background-assets create --asset-pack-identifier), then a version of it (asc background-assets versions create).
  2. It uploads the pack’s files to that version with asc background-assets upload-files create, one file at a time, each as an ASSET or a MANIFEST.
  3. Apple processes the version. asc names a version’s states AWAITING_UPLOAD, PROCESSING, FAILED and COMPLETE; the Agent checks them with asc background-assets versions list. A version can go to App Review once it’s COMPLETE.

To change the content later, ask for a new version of the same pack: the Agent uploads the new files to it and submits it as below.

Try it in TestFlight

Apple’s page Test Apple-hosted asset packs ↗ says TestFlight gives internal testers the newest processed version of each pack. External testers get a pack version only after TestFlight App Review. The asc background-assets commands have none for TestFlight App Review, so send the pack there in App Store Connect on the web, as Apple’s page shows.

Testers need a build of the app that downloads the pack. See Share a beta with TestFlight.

Send it to App Review

Asset packs are reviewed by Apple: the asc help says background-assets submit submits pack versions for App Store review. Ask for example:

Submit the newest version of the bonus levels pack for App Store review.
  1. The Agent can try it first with --dry-run, which says how many pack versions it would submit and changes nothing.
  2. asc submits only with --confirm, so the Agent asks you first. Apple’s page Submit Apple-hosted asset packs ↗ says that once a pack version is approved for the App Store, every App Store user gets it, and it replaces the pack’s earlier versions.
  3. For each pack, asc picks its newest COMPLETE version, makes a review submission, adds the pack versions to it and sends it. The Agent tells you the submission’s state and how many items it holds.

submit sends for iOS unless told otherwise: it takes --platform (IOS, MAC_OS, TV_OS or VISION_OS), so say which platform if it’s another. To follow the review, ask the Agent, or look at the App Review tab, which lists the app’s review submissions. See Submit to App Review and release.

With your app’s first version

Apple’s page says that until your app is first approved, a pack version goes in the same submission as the app’s first version. Later, a pack can go with or without an app version, but when a new app version needs a new pack to work, both go in the same submission.

The Agent can add pack versions to a submission that’s still open (--review-submission-id), or leave its submission open for more items (--no-submit). AirBuild’s Submit for Review adds only the app version. If the app already has an open submission, it adds the version to that one and sends it with anything an Agent put in it; otherwise it makes a new submission without packs. So for these submissions ask the Agent to submit both together:

Submit version 1.0 for review with the bonus levels pack in the same submission.

Remove a pack

An Agent can archive a pack with asc background-assets update --archived true. Apple’s page on testing asset packs says archiving removes every version of the pack, in TestFlight and on the App Store, that an archived pack can’t be restored, and that its identifier can’t be used again. asc archives without --confirm, so ask for it only when you’re sure.

Questions

The Agent says the pack has no version in state COMPLETE.
The message ends “upload files and wait for processing before submitting”. Apple hasn’t finished processing the version, it failed, or no files were uploaded to it yet. It can also mean the pack has no finished version for the platform being submitted (iOS unless you said otherwise). Wait and ask again. If the version’s state is FAILED, ask the Agent to upload the files to a new version.
The Agent says the asset pack identifier wasn't found.
asc looks only at the app’s packs that aren’t archived. Check the identifier with the Agent; asc background-assets list shows the app’s packs.
The Agent says it rolled back the submission.
Something failed after asc made the review submission, so it canceled that submission: nothing went to App Review. Ask the Agent to try again.
The pack was approved, but the app doesn't show the content.
The app’s code downloads the pack, not App Store Connect. Ask an Agent to check that the app fetches the pack with Background Assets, and that the version people have includes that code.