# User Guide

## Before you publish your first app

### Create an Apple Developer Account

You need an Apple Developer Account to publish an app to the App Store. To get a Developer Account you must enroll in the [Apple Developer Program](https://developer.apple.com/programs/). Enrollment is approximately $99 USD (or in local currency where available) per membership year.

### Generate an app-specific password

You only need one app-specific password for Thunkable to send any build to App Store Connect on your behalf.

You do not need separate app-specific passwords for separate Thunkable projects.&#x20;

1. Navigate to the [Apple ID account website](https://appleid.apple.com/#!\&page=signin).
2. Enter the **email address** and **password** associated with your Apple ID.
3. If prompted, enter your **two-factor** **authentication code**.
4. On the **Sign-In and Security** page, select **App-specific passwords**.<br>

   <figure><img src="/files/tsRzgeOJjbZp94vYv71N" alt=""><figcaption></figcaption></figure>
5. Click **Generate an app-specific password** if this is your first time creating an app-specific password or the **plus icon** if you've created an app-specific password previously. <br>

   <figure><img src="/files/ZsIQVWNC9Xgk5pVUci6l" alt=""><figcaption></figcaption></figure>
6. Give your app-specific password a meaningful name so you can recognize it later. <br>

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Remember:</p><ul><li>You can use the same app-specific password for all of your Thunkable projects.</li><li>Creating a new one every time you publish a new project is unnecessary and not recommended.  </li><li>Creating a new one when you want to update an existing project is unnecessary and not recommended.  </li></ul></div>
7. Your app-specific password is provided. You cannot retrieve this password once you close this modal, so make sure you save it somewhere safe.
8. Click **Done**.

### Create an iOS Distribution Certificate

A CSR is an encoded file containing information about your app, which Apple uses to create a certificate to encrypt traffic to your app. The following instructions walk you through how to:

* Download a certificate signing request (CSR) from Thunkable
* Use the CSR to generate a certificate from Apple
* Download the certificate from Apple
* Upload the certificate in Thunkable

To generate an Apple certificate and upload it to Thunkable:

1. Click **Click to download CSR** to download a certificate signing request (CSR) file.
2. Open your [Apple Developer account page](https://developer.apple.com/account).&#x20;
3. Under the **Certificates, IDs & Profiles** heading, select **Certificates**.
4. Click the blue **+** icon to add a new certificate to your account.
5. Choose **iOS Distribution (App Store Connect and Ad Hoc)** from the list.

<div align="left"><figure><img src="/files/GMIJ1hTbleZEdDUhOCWd" alt="" width="375"><figcaption></figcaption></figure></div>

6. Click **Continue**.
7. Click **Choose file**.
8. From your computer, select the **Certificate Signing Request (CSR)** you download from Thunkable.
9. Click **Continue**.
10. Click **Download** to save a copy of the certificate to your computer.
11. Return to Thunkable.
12. Click **Upload Certificate**.
13. &#x20;From your computer, select the **`.cer`** file you just downloaded.&#x20;
14. Click **Next**.

## Each time you create a new app

### Set a Version Number

1. Open your Thunkable project.
2. Navigate to the **Design tab**.
3. Click the **Settings** gear icon in the sidebar.
4. Under the iOS header, set your app's **Version Number**.&#x20;

   * If this is your first time sending this app to App Store Connect, set the version number to 1.&#x20;
   * You need to increment your version number, or increase it by 1, every time you submit a build to App Store Connect.

   ![](/files/x8fHqewHUz67Palv0vWd)

### Review your App Permissions

#### iOS Permissions

Apple requires that you explain to users why you need access to sensitive services like the device's camera, photo library, and microphone.&#x20;

To add these explanations:

1. Open your Thunkable project.
2. Navigate to the **Design tab**.
3. Click the **Settings** gear icon in the sidebar.
4. Under the **iOS Permissions** heading, add your explanations. (Note: This section is only visible if your project utilizes these features.)

![](/files/9rj7BW6gWpZ1xoYMrhMl)

#### **Tracking Usage Description**

If your app utilizes one of the following features, you must provide user tracking usage details (UTUD):

* AdMob
* Location Sensor
* Push Notifications
* Web Viewer&#x20;
* Open Link Block

These features share (or open links that may share) trackable data with third parties, and you must tell your users what data is being shared and why. If you don't provide this and your app engages in tracking, Apple will reject your submission and ask you to resubmit with an appropriate tracking string.&#x20;

The field should be left blank if:

* You do not use one of the features listed above (i.e. no trackable data is shared with third parties).
* Your app contains a Web Viewer component that only accesses a local HTML file.

To learn more about what to say in your Tracking Usage Description, see [here](https://docs.thunkable.com/publishing/publish-to-app-store-ios/tracking-usage-description).

You can set your Tracking Usage Description on the **Project Settings**                                                                                      ![](/files/c7mEDGmqu6ZDTje28bHq)

### Register Your App with Apple

Every app published on the App Store must have a unique name. For example, there can only ever be one app called `Thunkable Sample App`.  You can register your App ID to reserve the name you want.

To register an App ID:

1. Open your [Apple Developer account page](https://developer.apple.com/account).&#x20;
2. Under the **Certificates, IDs & Profiles** heading, select **Identifiers**.
3. Click the blue **+** icon to add a new identifier to your account.
4. Choose **App IDs** from the list of options.
5. Click **Continue**.
6. Select **App**.
7. Click **Continue**.
8. On the **Register an App ID** screen, complete or take note of the following fields:
   1. **Description** - This is the name you want to give your app. It appears next to the app icon when downloaded on a user's device. It must be unique to the App Store and cannot use special characters such as @, &, \*, "
   2. **Bundle ID** - This is also unique to your app, but not visible to your app users. Apple recommends reversing your domain name to create your bundle ID, i.e. *com.yourDomainName.yourAppName* to avoid conflicts with other apps.&#x20;

      <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Uploading apps to the App Store requires an Explicit Bundle ID. Wildcard bundle IDs are no longer accepted.</p></div>
   3. **App ID Prefix (Team ID)** - Record your App ID Prefix or Team ID. \
      This automatically created, unique identifier is linked to your Apple Developer Program membership. The same ID can be used for every app you publish. <br>

      <figure><img src="/files/lan8ANRnEZgFftNkfFY9" alt=""><figcaption></figcaption></figure>
9. Click **Continue**.
10. Confirm that the details are correct.
11. Click **Register**.
12. The new App ID you created is included in your list of Identifiers. Click the app's name to review its Description, App ID Prefix (Team ID), or Bundle ID.&#x20;

### Create an App Listing on App Store Connect

Your app listing on App Store Connect is where you will manage your submission to the App Store.

1. Go to the [App Store Connect website](https://appstoreconnect.apple.com/login) and log in.
2. Click **Apps**.

<figure><img src="/files/QhSELGJ9LFQnFm0uDHD5" alt=""><figcaption></figcaption></figure>

3. Click the blue **+** button next to the heading **Apps**.
4. Select **New App** from the provided menu.
5. Complete the New App modal.
   1. **Platforms** - iOS
   2. **Name** - The name you gave your app when you registered it. This is how it will appear on the App Store. It can't be longer than 30 characters.
   3. **Primary Language** - If localized app information isn’t available in an App Store country or region, the information from your primary language will be used instead. [Learn more](https://developer.apple.com/help/app-store-connect/manage-app-information/localize-app-store-information).
   4. **Bundle ID** - Select the Bundle ID you registered previously.
   5. **SKU** - A unique ID for your app that is not visible on the App Store. This is an identifier you create to track your apps on the App Store. You should stick to a pattern with your apps' SKU numbers to better organize them and keep track of app versions. Characters a-z, A-Z, 0-9, underscores, periods and dashes are all allowed.
   6. **User Access** - You can limit which users see the app in App Store Connect. If you select Full Access, all users will have access to the app. Users with the Admin, Finance, and Reports roles cannot have their app access limited.

      ![](https://docs.thunkable.com/~gitbook/image?url=https%3A%2F%2F1223006790-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LAn5scXl2uqUJUOqkJo-84897653%252Fuploads%252FtQIRVLsyvcIg7VTjYKSr%252FApp%2520Store%2520Connect%2520-%2520New%2520App%2520modal.png%3Falt%3Dmedia%26token%3D5cbda024-a994-44be-bc6c-9191448b2030\&width=768\&dpr=4\&quality=100\&sign=47170d2b\&sv=1)
6. Click **Create**.

### Create a Provisioning Profile&#x20;

Apple requires a provisioning profile to install an app on a device. You need to create a `.mobileprovision` file in your Apple account and then return to Thunkable to upload this file.

1. Open your [Apple Developer account page](https://developer.apple.com/account).&#x20;
2. Under the **Certificates, IDs & Profiles** heading, select **Profiles**.
3. Click the blue **+** icon to add a new certificate to your account.
4. Under the **Distribution** heading, select **App Store Connect**.&#x20;
5. Click **Continue**.
6. Select the **App ID** for the app you want to publish.&#x20;
7. Click **Continue**.
8. Select the certificate you wish to include in this provisioning profile.
9. Click **Continue**.
10. Name your provisioning profile.
11. Click **Generate**.
12. Click **Download** to save the provisioning profile to your computer.&#x20;

{% hint style="info" %}
Your provisioning profile name should only contain letters (A-Z, a-z), numbers (0-9), or spaces.&#x20;
{% endhint %}

### Start the Publishing Process in Thunkable

Thunkable enables you to send your build directly to the App Store without the need for any specialized software or hardware. To begin the process:

1. Within your Thunkable project, click the **Publish and Download** icon.
2. Select **Publish iOS** from the drop-down menu.\
   \
   ![](/files/7Yw0jzyLWHlTGU7W77Dt)
3. A publishing modal is provided to guide you through the publication process.&#x20;
4. Click **Get Started**.&#x20;
5. Enter the Apple ID associated with your [Apple Developer account](/publishing/publish-to-app-store-ios.md#create-an-apple-developer-account).&#x20;
6. Click **Next**.

#### Register app

1. Input your **App Name**, **Team ID**, and **Bundle ID** from when you completed these steps: [#register-your-app-with-apple](#register-your-app-with-apple "mention").                            &#x20;

   <figure><img src="/files/OYA8uAXehmRpWiQIT3pV" alt=""><figcaption></figcaption></figure>
2. Click **Next**.&#x20;

{% hint style="info" %}
These values will remain the same every time you publish or update this app, so record them somewhere safe.&#x20;
{% endhint %}

#### App Credentials

Upload the Distribution Certificate created created in [#create-an-ios-distribution-certificate](#create-an-ios-distribution-certificate "mention")

1. Click **Upload Certificate**.
2. From your computer, select the **`.cer`** file you just downloaded.
3. Click **Next**.<br>

   <figure><img src="/files/xk9PK8LQmI0uanmMY119" alt=""><figcaption></figcaption></figure>

Upload the Provisioning Profile created in [#create-a-provisioning-profile](#create-a-provisioning-profile "mention")

1. Click **Upload Profile**.
2. From your computer, select the **`.mobileprovision`** file you just downloaded.
3. Click **Next**.<br>

   <figure><img src="/files/hmed4600MeBtvWwOZTwe" alt=""><figcaption></figcaption></figure>

Enter your App Specific Password as created in [#generate-an-app-specific-password](#generate-an-app-specific-password "mention")

1. **Paste your app-specific password** into the provided field in the Thunkable publishing modal.
2. Click **Next**.<br>

   <figure><img src="/files/ReC7xuVKWLAiI27Qa8eO" alt=""><figcaption></figcaption></figure>

#### App Store Connect

1. Make sure that you have completed the previous step to create an App Listing on App Store Connect
2. Click **Next** to confirm you've created a new app with App Store Connect.

   <figure><img src="https://docs.thunkable.com/~gitbook/image?url=https%3A%2F%2F1223006790-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LAn5scXl2uqUJUOqkJo-84897653%252Fuploads%252F1F3IxvCisjh8EBx3Tpp8%252FiOS%2520Publishing%2520Wizard%2520-%2520App%2520Store%2520Connect.png%3Falt%3Dmedia%26token%3D2ccb94cd-4ff8-4e1c-9bc2-bdb52480a79b&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=50865a52&#x26;sv=1" alt=""><figcaption></figcaption></figure>

#### App Info

* **App icon:** This app icon appears when a user downloads your app from the App Store. Recommended size: 1024x1024 px. This icon must not have any transparent pixels.
* **Version Number:** The version number is visible to your users when they download a new version of your app. See here for additional information: [#set-a-version-number](#set-a-version-number "mention").

<figure><img src="/files/JPbJ06x1zgzxnnakDxWx" alt=""><figcaption></figcaption></figure>

When the necessary fields are populated, click **Submit**.&#x20;

You should shortly receive an email from Thunkable informing you that your build is being sent to the App Store. There are still a number of steps you need to complete on App Store Connect before your app can be published, but that's everything completed from the Thunkable side of things - congratulations!

Because of Apple's thorough review process, app submissions are sometimes not approved on the first attempt. See here to assist you in troubleshooting the issues Apple flags with your submission: #troubleshooting.

## To update your app

Repeat the following steps in [#each-time-you-create-a-new-app](#each-time-you-create-a-new-app "mention"):&#x20;

1. [#set-a-version-number](#set-a-version-number "mention")
2. [#start-the-publishing-process-in-thunkable](#start-the-publishing-process-in-thunkable "mention"), except for [#app-store-connect](#app-store-connect "mention")

{% hint style="info" %}
When you update your app, Thunkable will automatically load in your iOS Distribution Certificate and Provisioning Profile.
{% endhint %}

## After each successful build

Once your build has completed, you will receive several emails from Thunkable or Apple. The email from Thunkable will tell you if your build has been successfully sent to App Store Connect or if there is an issue. If there is an issue, follow the instructions in the email or Contact Support with your Reference ID for assistance.

#### The uploaded build for \<App Name> has one or more issues.

<figure><img src="/files/EYwZGiOvKllyFf1eEBbU" alt=""><figcaption></figcaption></figure>

This is merely a notice from Apple, no further action is necessary on your part. They send this because they detect a snippet of code for Push Notifications that is present, but always deployed, in every Thunkable app.

#### App Store Connect: Version # (\<Build ID>) for \<App Name> has completed processing.<br>

<figure><img src="/files/JJwVkViJB3WgXm3iuqC9" alt=""><figcaption></figcaption></figure>

This email from Apple tells you that your built is now completed processing and is either

* Ready for testing on [TestFlight](/publishing/testing/testing-on-ios-via-testflight.md)
* Ready to add to your builds on App Store connect and ready to [submit for review](/publishing/publish-to-app-store-ios/review-process.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunkable.com/publishing/publish-to-app-store-ios/user-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
