Ship to the App Store

If your App Store listing lives in a fastlane folder, have an Agent check it, preview the import, and upload the text, screenshots and review details to App Store Connect, or write the listing back into fastlane files.

fastlane’s deliver tool keeps an app’s App Store listing in a folder of text files, screenshots and videos. If your app’s listing is kept that way, an Agent can upload that folder to App Store Connect, so you can go on from AirBuild. It can also write App Store Connect’s current listing into the same kind of folder.

Put the folder in the project

What the folder holds

The asc help shows the layout it reads:

  • Folder fastlane
    • Deliverfile
    • Folder metadata
      • Folder en-US
        • name.txt
        • subtitle.txt
        • privacy_url.txt
        • description.txt
        • keywords.txt
        • release_notes.txt
        • promotional_text.txt
        • support_url.txt
        • marketing_url.txt
        • Folder app_clip
          • subtitle.txt
          • header_image.png
      • Folder review_information
        • first_name.txt
        • …
      • Folder app_clip
        • action.txt
    • Folder app_previews
      • Folder en-US
        • Folder iphone_65
          • preview.mp4
          • preview.poster_frame.txt
    • Folder screenshots
      • Folder en-US
        • iphone_65_1.png
        • …
In the folder What it becomes in App Store Connect
name.txt, subtitle.txt, privacy_url.txt in a language’s folder The app’s name, subtitle and privacy policy URL in that language.
description.txt, keywords.txt, release_notes.txt, promotional_text.txt, support_url.txt, marketing_url.txt The version’s description, keywords, What’s New text, promotional text, support URL and marketing URL in that language.
review_information/ The version’s App Review contact and demo account: first_name.txt, last_name.txt, email_address.txt, phone_number.txt, demo_user.txt, demo_password.txt, demo_required.txt and notes.txt. See App Review Contact in Prepare your App Store page.
screenshots/ and a language The version’s screenshots in that language. asc works out each screenshot’s device from its file name or from the picture’s size.
app_previews/, a language and a device App Preview videos, each with an optional poster frame.
app_clip/ The App Clip’s subtitle, header image and action.
Deliverfile asc reads its app_identifier, app_version, platform, metadata_path, screenshots_path, skip_metadata and skip_screenshots.

Check it and preview the import

Ask in the Project’s chat, for example:

Our fastlane folder is in the project. Check it, then show me what importing it into version 1.4 would change.
  1. The Agent checks the folder with asc migrate validate. It reads the files without contacting Apple, and lists each name, subtitle, description, keywords, What’s New or promotional text that is over App Store Connect’s character limit. A language with an empty description gets a warning. For the limits, see Prepare your App Store page.
  2. It does a dry run, asc migrate import --dry-run, which changes nothing. It lists the languages, the text files of each, the review information, the screenshots by device, and anything it skipped with the reason. The demo account password is shown hidden.
  3. Read the list. To change something, ask the Agent to edit the files, then to check them again.

The import goes into one version of one app. asc takes them from the Deliverfile’s app_identifier, app_version and platform, or from what you tell the Agent. The version has to exist in App Store Connect already: to make it, see Ship an update to your app.

Import it

asc imports only with --confirm, so the Agent asks you first. The text it sends replaces what that version has in App Store Connect now, and asc keeps no copy of the old text. To keep one, ask the Agent first to write the current listing into another folder (see Write the listing back into fastlane files).

On your yes, the Agent runs asc migrate import --confirm:

Part What happens
Text Each language’s fields are updated. A language the version doesn’t have yet is added.
Review information Created or updated. Left alone when App Store Connect already has the same.
Screenshots Each one is uploaded to its device’s set, and the set is put in the folder’s order. A screenshot whose file name is already in the set is skipped as “already exists”. Screenshots already there aren’t deleted.
App Clip header image A header image that differs from the one in App Store Connect replaces it.

The Agent tells you what was uploaded for each language. To see the result, open App Information › Store Page. See Prepare your App Store page.

To leave some parts out, tell the Agent: it can skip the screenshots (--skip-screenshots), the App Preview videos (--skip-previews) or the App Clip (--skip-app-clip).

Write the listing back into fastlane files

Ask for example:

Write our App Store listing for version 1.4 into a fastlane folder in the project.

The Agent uses asc migrate export with the folder you name. For each language it writes name.txt, subtitle.txt, privacy_url.txt, description.txt, keywords.txt, release_notes.txt, promotional_text.txt, support_url.txt and marketing_url.txt under metadata/, and the App Clip and App Preview files if the version has them. It doesn’t write screenshots or review information.

In a folder that already has these files, it replaces them, and it removes the file of any field that is empty in App Store Connect. To keep your folder as it is, ask for a new one.

Questions

The Agent says --version-id is required.
The Deliverfile has no app_version and platform. Tell the Agent which version to import into, for example 1.4.
It says no app was found for the bundle ID.
The Deliverfile’s app_identifier isn’t an app in the Apple team the Team uses. Check the Bundle ID: see Find your app’s Bundle ID and its last build.
A Deliverfile path must stay inside the folder.
The Deliverfile points metadata_path or screenshots_path outside the fastlane folder, and asc doesn’t follow it. Move those folders inside, or tell the Agent you trust that path: it then adds --allow-external-metadata or --allow-external-screenshots.
It says a Deliverfile path resolves to a folder that isn't there.
asc reads the paths in a Deliverfile from the Deliverfile’s own folder. When the message adds a hint, for example that ./fastlane/metadata should be ./metadata, ask the Agent to change the Deliverfile that way.
The import stopped partway.
The report starts with “Partial Import - failed at” and the step, with the failure and the steps it finished. What it uploaded stays uploaded. Fix what the failure says and ask the Agent to run the import again: screenshots already uploaded are skipped as “already exists”.
It says ffprobe is required.
The folder has App Preview videos, and asc checks them with FFmpeg’s ffprobe, which the Team’s environment doesn’t have. Ask the Agent to install FFmpeg, or to import without the videos (--skip-previews).
A video or header image is refused.
The asc help says previews must be 15 to 30 seconds long, and App Clip header images must be PNG at 1800 x 1200. Replace the file, or leave that part out.
It warns that a new language is missing fields.
The warning says the language “is still missing submit-required fields” and names them. Fill them in before you submit. See Add languages to your App Store page.