<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shaswatvashistha on Medium]]></title>
        <description><![CDATA[Stories by Shaswatvashistha on Medium]]></description>
        <link>https://medium.com/@shaswatvashistha1998?source=rss-b7d1a37661e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MCWKXDGlmknLvhFn</url>
            <title>Stories by Shaswatvashistha on Medium</title>
            <link>https://medium.com/@shaswatvashistha1998?source=rss-b7d1a37661e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:55:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaswatvashistha1998/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fastlane CI/CD IOS Pipeline]]></title>
            <link>https://medium.com/@shaswatvashistha1998/fastlane-ci-cd-ios-pipeline-32a3343fc8d8?source=rss-b7d1a37661e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/32a3343fc8d8</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[fastlane-ios]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Shaswatvashistha]]></dc:creator>
            <pubDate>Mon, 26 May 2025 09:22:39 GMT</pubDate>
            <atom:updated>2025-05-26T09:22:39.156Z</atom:updated>
            <content:encoded><![CDATA[<p>The Fastlane CI/CD process has been set up as a workflow.yaml inside a github branch. The workflow.yaml is a dynamic yaml file that will stay the same for each and every branch</p><p>Here is the gist for the workflow</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e79202d5018512e9da88a4207e91ee1/href">https://medium.com/media/8e79202d5018512e9da88a4207e91ee1/href</a></iframe><p>Prerequisites:</p><ul><li>Apple developer account</li><li>Api keys: Here is the link to create API keys</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/creating-api-keys-for-app-store-connect-api#Generate-an-Individual-Key">https://developer.apple.com/documentation/appstoreconnectapi/creating-api-keys-for-app-store-connect-api#Generate-an-Individual-Key</a></li><li>An application created within apple with app identifier</li></ul><p>Now there will be some variables that we will be using on the workflow.Please create these variables inside the action environment</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1Y8C-3Ai2dAoPlD0ZDl5p0o2w-H1SrtmPW_Wq_LaF8CU%2Fpreview%3Fembedded%3Dtrue&amp;display_name=Google+Docs&amp;url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1Y8C-3Ai2dAoPlD0ZDl5p0o2w-H1SrtmPW_Wq_LaF8CU%2Fedit%3Fgid%3D0&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=google" width="700" height="530" frameborder="0" scrolling="no"><a href="https://medium.com/media/b929ab98d5cb7ba52eb212ac29cec2b8/href">https://medium.com/media/b929ab98d5cb7ba52eb212ac29cec2b8/href</a></iframe><p>Step 1: We will be downloading all the environment variables inside our container.In this</p><p>step we have setup a workflow dispatch on github.Also in the env-variable please make sure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6RJ3AjYfUZLdwshb" /></figure><h3>Jobs: Build and Deploy</h3><h3>Key Steps and Their Purpose</h3><h3>1. Set Environment Variables</h3><ul><li><strong>Why:</strong> To securely pass sensitive information like Apple Developer account details, certificates, and provisioning profile secrets.</li><li><strong>How:</strong> Environment variables are fetched from GitHub Secrets to prevent exposing sensitive data in the repository.</li></ul><h3>2. Checkout Code</h3><ul><li><strong>Why:</strong> Ensures the workflow has access to the latest codebase.</li><li><strong>How:</strong> Uses the actions/checkout action to fetch the repository code.</li></ul><h3>3. Set Up Ruby</h3><ul><li><strong>Why:</strong> Fastlane, the primary tool for managing the build and deployment, runs on Ruby.</li><li><strong>How:</strong> Installs Ruby and required gems, including fastlane and fastlane-plugin-versioning.</li></ul><h3>4. Install Dependencies</h3><ul><li><strong>Why:</strong> To ensure all necessary Ruby gems and plugins are available for Fastlane to function.</li><li><strong>How:</strong> Installs bundler and uses it to fetch dependencies specified in the Gemfile.</li></ul><h3>5. Set Up Apple Developer API Key</h3><ul><li><strong>Why:</strong> Apple Developer API keys are required to interact with App Store Connect for tasks like fetching version numbers or uploading builds.</li><li><strong>How:</strong> Creates api_key.json dynamically from secrets for secure storage during the workflow.</li></ul><h3>6. Configure AWS CLI</h3><ul><li><strong>Why:</strong> To manage provisioning profiles and certificates stored in an AWS S3 bucket via Fastlane’s match tool.</li><li><strong>How:</strong> Configures the AWS CLI using secrets to interact with the specified S3 bucket.</li></ul><h3>7. Create and Unlock Keychain</h3><ul><li><strong>Why:</strong> Temporary keychains are needed for secure handling of certificates during the build process.</li><li><strong>How:</strong> Creates a keychain, unlocks it, and sets it as the default for the workflow.</li></ul><h3>8. Dynamic Fastlane Configuration</h3><ul><li><strong>Why:</strong> Fastlane requires configuration files (Appfile, Matchfile, and Fastfile) to define app-specific and certificate management details.</li><li><strong>How:</strong> Creates these files dynamically based on inputs and secrets, ensuring flexibility and security.</li></ul><h3>9. Version Management</h3><ul><li><strong>Why:</strong> Automates versioning based on user input (major, minor, or patch).</li><li><strong>How:</strong> Retrieves the current version, increments it based on the input, and updates the Xcode project with the new version.</li></ul><h3>10. Build the App</h3><ul><li><strong>Why:</strong> Compiles the app using Xcode with the correct configurations.</li><li><strong>How:</strong> Uses Fastlane’s build_app method, specifying the scheme and provisioning profile.</li></ul><h3>11. Upload to TestFlight</h3><ul><li><strong>Why:</strong> To distribute the app to testers via Apple’s TestFlight platform.</li><li><strong>How:</strong> Uses Fastlane’s upload_to_testflight to upload the build and bypasses waiting for build processing.</li></ul><h3>12. Notify Success</h3><ul><li><strong>Why:</strong> Provides feedback on the workflow’s success.</li><li><strong>How:</strong> Displays a success message if the workflow completes without errors.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32a3343fc8d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>