> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-ai/readme/building-your-app/build-and-publish/ios-build-and-publish-old.md).

# iOS Build and Publish (old)

#### 1. Build iOS App Store Version

**Generate Private Key:**

1. Use a **Mac** with **Xcode** installed
2. Go to [Apple Developer Account](https://developer.apple.com/account)
3. Navigate to **Certificates, Identifiers & Profiles**
4. Under **Certificates** , create a new **iOS Distribution (App Store Connect & Ad hoc)** certificate
5. Upload a **Certificate Signing Request (CSR)**\
   👉 [How to create CSR](https://developer.apple.com/help/account/create-certificates/create-a-certificate-signing-request/)

**Export Certificate + Private Key:**

1. Download `.cer` file and open in **Keychain Access**
2. If needed, download and install `AppleWWDRCAG3.cer`
3. Locate certificate and private key under **My Certificates**
4. Right-click and export as `.p12` file
5. Set password — this will be used in eMOBIQ

**Generate Provisioning Profile:**

1. Go to **Profiles** > Register new profile
2. Select **Distribution > App Store Connect**
3. Choose your App ID and certificate
4. Download `.mobileprovision` file

**Upload to eMOBIQ:**

1. Go to **Build and Publish tab** > **New Build** > Select **iOS**
2. Choose **App Store distribution** as build type
3. Enter:
   * Code sign (Common Name from certificate)
   * Team ID (Organizational Unit from certificate)
4. Upload:
   * `.p12` private key file
   * `.mobileprovision` file
   * Enter private key password

Click **Build** and wait for the `.ipa` file to be generated

***

#### 2. Initial Setup in App Store Connect

1. Visit [App Store Connect](https://appstoreconnect.apple.com/)
2. Go to **Apps** > **Add New App**
3. Select **iOS** platform
4. Fill in:
   * App name
   * Bundle ID (use eMOBIQ package name)
   * SKU (unique identifier, e.g., eMOBIQ AppID)

> 🧩 Language should be set to **English (U.S.)**

Fill all required details including descriptions, screenshots, and metadata

> 📌 Available channels:

* **TestFlight** – for internal/external testing
* **Distribution** – for public availability

***

#### 3. Manual Deployment to App Store

**Upload via Transporter App:**

1. Use Apple’s **Transporter** app to upload `.ipa` file
2. Wait for review

Once approved, your app will be live on the App Store

***

#### 4. Configure Auto-Publishing via eMOBIQ

**Generate API Key:**

1. In App Store Connect > **Users and Access** > **Keys**
2. Create new API key with **Access Level** : *App Manager* or higher
3. Download the `.p8` file (this can only be downloaded once)
4. Take note of:
   * **Key ID**
   * **Issuer ID**

**Upload to eMOBIQ:**

Go to **Settings > iOS > Publish Settings** and upload:

* Account private key file (`.p8`)
* Key ID
* Issuer ID

Enter app details that match App Store Connect:

* App name
* Subtitle
* Short description
* Full description

**Enable Auto Publishing:**

1. Go to **Build & Publish > Publish tab**
2. Click **Publish** for the latest build
3. Confirm settings
4. The app will be deployed to **TestFlight** , then promoted to **Distribution** after review

> 📌 Note: A manual upload must already exist before enabling auto-publishing
