<?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 Ishaan Bhatnagar on Medium]]></title>
        <description><![CDATA[Stories by Ishaan Bhatnagar on Medium]]></description>
        <link>https://medium.com/@ishaan-bhatnagar19?source=rss-4cbe4f1a3180------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pDAnBWi_eJVu8-Pg</url>
            <title>Stories by Ishaan Bhatnagar on Medium</title>
            <link>https://medium.com/@ishaan-bhatnagar19?source=rss-4cbe4f1a3180------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:25:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ishaan-bhatnagar19/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[Handling two-factor auth compliance with automated iOS build delivery]]></title>
            <link>https://ishaan-bhatnagar19.medium.com/handling-two-factor-auth-compliance-with-automated-ios-build-delivery-8f26abba997d?source=rss-4cbe4f1a3180------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f26abba997d</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[fastlane]]></category>
            <category><![CDATA[continous-deployment]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Ishaan Bhatnagar]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 07:41:39 GMT</pubDate>
            <atom:updated>2021-06-22T07:41:39.538Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XwlpAWQb07FTnl7j" /></figure><p>In continuation to my previous blog — <a href="https://blog.hike.in/we-drive-in-fastlane-hike-223cd6fa2a42">We Drive in Fastlane @ Hike</a> we wanted to share a solution to a widespread problem statement associated with iOS app deployment via Fastlane.</p><h3><strong>Problem Statement:</strong></h3><p>As of late Apple has made Two Factor Authentication compulsory on iTunes and often Release Automation Tools team across the globe tackle the following issue:</p><blockquote><em>Two-factor Authentication (6 digits code) is enabled for account ‘appleAcount@gmail.com’ More information about Two-factor Authentication: </em><a href="https://support.apple.com/en-us/HT204915"><em>https://support.apple.com/en-us/HT204915</em></a></blockquote><blockquote><em>If you’re running this in a non-interactive session (e.g. server or CI) check out </em><a href="https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification"><em>https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification</em></a></blockquote><blockquote><em>(Input sms to escape this prompt and select a trusted phone number to send the code as a text message)</em></blockquote><blockquote><em>(You can also set the environment variable SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER to automate this) (Read more at: </em><a href="https://github.com/fastlane/fastlane/blob/master/spaceship/docs/Authentication.md#auto-select-sms-via-spaceship_2fa_sms_default_phone_number)"><em>https://github.com/fastlane/fastlane/blob/master/spaceship/docs/Authentication.md#auto-select-sms-via-spaceship_2fa_sms_default_phone_number)</em></a></blockquote><blockquote><em>Please enter the 6 digit code:</em></blockquote><p>Since at Hike the iOS app deployment is completely automated we did not want to re-introduce manual intervention.</p><h3>Solution:</h3><p>Fastlane with its update <a href="https://github.com/fastlane/fastlane/releases/tag/2.163.0">2.163.0</a> integrated usage of “API Keys for App Store Connect API” in “pilot, deliver, match etc”. Here are the steps we followed to solve this issue:</p><ol><li>Generate “<a href="https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api">API Keys for App Store Connect API</a>”</li><li>To generate an API key to use with the App Store Connect API, log in to App Store Connect (preferably using Admin or Account Holder account)</li><li>Select Users and Access, and then select the API Keys tab.</li><li>Click Generate API Key or the Add (+) button.</li><li>Enter a name for the key. The name is for your reference only and is not part of the key itself.</li><li>Under Access, select the role for the key.</li><li>Click Generate and download the API key (store it in a safe place) — you will get KEY_ID &amp; ISSUER_ID</li><li>In your “fastfile”, call the <em>app_store_connect_api_key action</em> on the desired lane or action, here is the sample of how our lane alpha looks like:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bwtqs9EY1VoPRiw8" /></figure><p>You can visit Fastlane official documentation for more useful insights <a href="https://docs.fastlane.tools/app-store-connect-api/">here</a></p><p>Finally, here is what you will see the output as post executing Fastlane “alpha lane” in this case:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P6tW8BBmmCRp-hf9" /></figure><h3>Conclusion:</h3><p>We were able to quickly make these tweaks and ensure our build deployment system stays robust and up to date &amp; stays in compliance with Apple Policies. Up next we will share how to use Fastlane for re-trying flaky test cases and ensuring uninterrupted test case execution (UI and Unit with Fastlane)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f26abba997d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>