πŸ“iOS Product Setup

replace all data in .env that you have with apps data.

Set Up App Store Connect

  1. Create an App in App Store Connect:

    • Log in with your Apple Developer account.

    • Navigate to the My Apps section and click on the "+" icon to create a new app.

    • Fill in the required details such as App Name, Bundle ID, and other information.

  2. Get Your Bundle ID:

    • In the App Information section of your app, find the Bundle ID. This is a unique identifier for your app (e.g., com.fast.free.unblock.safer.vpn).

Step 3: Generate an App-Specific Shared Secret

  1. Create an App-Specific Shared Secret:

    • In App Store Connect, go to Users and Access.

    • Select the App-Specific Shared Secret tab.

    • Click on Generate App-Specific Shared Secret to create one.

    • Copy the generated secret and save it. This will be used as your APPSTORE_PASSWORD.

Step 4: Create and Download a Private Key

  1. Create a Key in App Store Connect:

    • In App Store Connect, navigate to the Certificates, Identifiers & Profiles section.

    • Select Keys from the sidebar.

    • Click the "+" button to create a new key.

    • Enter a name for the key and check the App Store Connect API option.

    • Click Continue and then Register.

  2. Download the Private Key:

    • After registering the key, you will be able to download the private key file (AuthKey_<KEY_ID>.p8).

    • Make sure to save this file securely as it will not be available for download again.

  3. Get the Key ID:

    • The Key ID is displayed in the Keys section next to your newly created key. This is your APPSTORE_PRIVATE_KEY_ID.

Step 5: Get Your Issuer ID

  1. Get Issuer ID from App Store Connect:

    • In App Store Connect, navigate to the Certificates, Identifiers & Profiles section.

    • Select Keys from the sidebar.

    • Your Issuer ID is displayed at the top of the page. This is your APPSTORE_ISSUER_ID.

Step 6: Set Environment Variables

Add the following environment variables to your .env file with the values you obtained:

envCopy codeAPPSTORE_PASSWORD=edc06e5f4a124896aefcafb563b1e441
APPSTORE_PRIVATE_KEY_ID=PHTVQ88Y4S
APPSTORE_PRIVATE_KEY=path/to/AuthKey_U4946UHL2X.p8
APPSTORE_ISSUER_ID=33bc6028-efc0-46f2-9b26-62e50a71135f
APPSTORE_BUNDLE_ID=com.fast.free.unblock.safer.vpn

Example .env Configuration

envCopy codeAPPSTORE_PASSWORD=edc06e5f4a124896aefcafb563b1e441
APPSTORE_PRIVATE_KEY_ID=PHTVQ88Y4S
APPSTORE_PRIVATE_KEY=/path/to/AuthKey_U4946UHL2X.p8
APPSTORE_ISSUER_ID=33bc6028-efc0-46f2-9b26-62e50a71135f
APPSTORE_BUNDLE_ID=com.fast.free.unblock.safer.vpn

Ensure you replace /path/to/AuthKey_U4946UHL2X.p8 with the actual path to your downloaded private key file.