044 4286 9090

Fastlane to TestFlight iOS step by step tutorial

14July

    Fastlane to TestFlight iOS step by step tutorial

    1. Setup Xcode project and create respective App ID, Provisioning Profiles
    2. Create New App in iTunes Connect
    3. Setup and install FastLane to Application
    4. FastFile Configuration

    Step 1: Setup Xcode project and create respective App ID, Provisioning Profiles

    • Create a new Xcode Project
    • Go to Developer Account and create App Id for the project
    • Create provisioning profiles for both Development and Distribution using the created App Id for the App
    • After creating the Provisioning Profiles, go to General Tab of the app Target and uncheck Automatically Manage Signing
    • Select Signing Debug (Development) and Signing Release(Distribution) profiles
    • If Provisioning profiles are not installed in Key-chain, click Download Profile, it will display the profiles available in Developer portal

    2. Create New App in iTunes Connect

    • Go to iTunes Connect and create a new app with the bundle identifier of the app created

    3. Setup and install FastLane to Application

    • To Setup fastlane to App, follow the steps in Fastlane docs for iOS `https://docs.fastlane.tools/getting-started/ios/setup/` and for swift `https://docs.fastlane.tools/getting-started/ios/fastlane-swift/`
    • First go into the project directory from terminal and Install fastlane. If need try command with sudo
    gem install fastlane -NV
    • Then setup Fast lane for swift using
     fastlane init swift
    • After this setup is complete, there will be four options available as below
    1. 📸 Automate screenshots
    2. 👩‍✈️ Automate beta distribution to TestFlight
    3. 🚀 Automate App Store distribution
    4. 🛠 Manual setup - manually setup your project to automate your tasks
    • Select option 4 , during the set up it will prompt with some instructions twice, press Enter for those two and the setup will be completed
    • When the setup is complete, Open the file located at

      [projectDirectory]/fastlane/swift/FastlaneRunner/FastlaneRunner.xcodeproj to configure your lanes in Fastfile.swift

      ⁃ Edit the custom Lane function as follow

    func customLane() {
    	buildIosApp(scheme: "BlogApp") // Your app Name
    	uploadToTestflight(username: "iosapp@example.com”) // Your Apple ID
    }

    ⁃ Then enter the command fastlane customLane to upload the build to TestFlight
    ⁃ This command will generate the .ipa file required for uploading the app to TestFlight
    ⁃ After generating the ipa file, the it will prompt to select the appropriate team if there are multiple teams associated with your iTunes Connect
    ⁃ Select the team under which the app has been created and press Enter
    ⁃ The generated build will be uploaded to TestFlight for testing

    Posted by admin  Posted on 14 Jul 
  • Post Comments 0

    Drop us a line

    Your email address will not be published.

    To create code blocks or other preformatted text, indent by four spaces:

        This will be displayed in a monospaced font. The first four 
        spaces will be stripped off, but all other whitespace
        will be preserved.
        
        Markdown is turned off in code blocks:
         [This is not a link](http://example.com)
    

    To create not a block, but an inline code span, use backticks:

    Here is some inline `code`.

    For more help see http://daringfireball.net/projects/markdown/syntax