<?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 Jeremie SIFFRE on Medium]]></title>
        <description><![CDATA[Stories by Jeremie SIFFRE on Medium]]></description>
        <link>https://medium.com/@PtitChevreuil?source=rss-3ffcec3ffc40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z-ybkh6p_XAwAPCNHUjCow.jpeg</url>
            <title>Stories by Jeremie SIFFRE on Medium</title>
            <link>https://medium.com/@PtitChevreuil?source=rss-3ffcec3ffc40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:55:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PtitChevreuil/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[iOS CI/CD with GitHub Actions]]></title>
            <link>https://medium.com/thefork/ios-ci-cd-with-github-actions-e4504228c9d?source=rss-3ffcec3ffc40------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4504228c9d</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Jeremie SIFFRE]]></dc:creator>
            <pubDate>Tue, 27 Apr 2021 15:39:39 GMT</pubDate>
            <atom:updated>2021-04-27T15:39:39.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rD3XAwAA6yTsqHVZdQsJ6g.jpeg" /></figure><p>For many years, we had our iOS Continuous Integration system running on Jenkins with a unique MacOS slave as a physical machine.</p><p>It worked pretty well overall but we started to encounter scalability issues as the team grew. iOS developers complained about the CI being slow and we knew having a single Xcode instance available at a time could be an issue.</p><p>On August 2020, we were preparing our tooling migration to get ready for iOS 14 when we realized our physical MacOS machine was not matching minimum technical requirements to install the latest Xcode version.</p><p>We needed to find an alternative solution…</p><p>Here comes Github Actions into play.</p><p>In this article we will present 2 main use cases to show you how an iOS Continuous Integration could look like on GitHub Actions.</p><h3>Prerequisites</h3><p>At TheFork we mainly rely on Fastlane <a href="https://fastlane.tools/">tools</a> to implement the different steps of our CI/CD pipeline.</p><p>We have 3 main lanes declared in our Fastfile:</p><ul><li><strong>test</strong>: using fastlane <em>scan</em></li><li><strong>deploy_to_firebase</strong>: relying on <em>gym</em>, <em>firebase_app_distribution</em></li><li><strong>sync_certs</strong>: relying on <em>match,</em> to download the provisioning profiles and certificates in order to deploy the application</li></ul><p>We also use <a href="https://bundler.io/">Bundler</a> to keep track of the gems versions we use ( including the Fastlane one ).</p><p>In the next sections we will consider we already have those lanes ready to be used.</p><h3>Use case #1: Run tests on Pull Request</h3><p>We started with the migration of our Pull Request job. Basically, whenever an iOS developer opens or modifies a pull request, we want to make sure no code regressions have been introduced, by running unit tests.</p><p>Let’s see how the workflow definition looks like:</p><pre>name: Pull request</pre><pre>on: <br>  pull_request:<br>    branches:<br>      - develop</pre><pre>jobs:<br>  test:<br>    runs-on: macos-10.15<br>    timeout-minutes: 15<br>    steps:<br>      - name: Cancel previous jobs<br>        uses: styfle/cancel-workflow-action@0.6.0<br>        with:<br>          access_token: ${{ github.token }}<br>      - name: Git - Checkout<br>        uses: actions/checkout@v2.3.4<br>        with:<br>          ref: ${{ github.ref }}<br>      - name: Setup - Xcode<br>        run: sudo xcode-select -s /Applications/Xcode_12.3.app<br>      - name: Setup - Ruby and bundler dependencies<br>        uses: ruby/setup-ruby@v1.57.0<br>        with:<br>          ruby-version: 2.4.0<br>          bundler-cache: true<br>      - name: Test - Fastlane tests<br>        run: bundle exec fastlane test</pre><p>We start with the <a href="https://docs.github.com/en/actions/reference/events-that-trigger-workflows">trigger definition</a> and launch this job on pull request events but only from the develop branch.</p><p>We continue with jobs listing and declare a single job named “test”. We specify the OS version we want (macOS 10.15) along with a timeout of 15 minutes.</p><p>This job is composed of 5 steps:</p><ul><li>“Cancel previous jobs”: We start by cancelling previous jobs on the same branch using this action <a href="https://github.com/styfle/cancel-workflow-action">https://github.com/styfle/cancel-workflow-action</a></li><li>“Git — Checkout”: We checkout the branch content</li><li>“Setup — Xcode”: We select the Xcode version we want the tests to run on. See <a href="https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode">here</a> for the full list of Xcode versions available on MacOS 10.15.</li><li>“Setup — Ruby and bundler dependencies”: We install ruby, download gems with bundle install and cache the result</li><li>“Test — Fastlane tests”: We lastly run our fastlane “test” lane and check for non regressions</li></ul><h3>Use case #2: Test builds on demand for Product Owners</h3><p>At TheFork, we create a new Git branch for each feature increment we work on. In order to get our branch merged into the main project (i.e. develop branch), we need it to be reviewed by a minimum of 2 iOS peers but we also need to get approval from the <a href="https://www.scrum.org/resources/what-is-a-product-owner">Product Owner</a>.</p><p>In order to get this “Product Owner” approval, we need to be able to provide him test builds matching the exact content of the Git branch we are currently working on.</p><blockquote><em>What if we could have a user interface embedded in GitHub allowing us to select our branch and click on a button to generate testing builds on the fly.</em></blockquote><p>Say hello to <a href="https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/"><strong>workflow_dispatch</strong></a> :-)</p><p>Workflow_dispatch is a manual trigger allowing us to specify “inputs” we can collect from users in a lightweight form automatically generated and available in the GitHub interface.</p><p>This trigger definition..</p><pre>name: Launch Firebase builds ( Product Owner testing )<br>on:<br>  workflow_dispatch:<br>    inputs:<br>      message:<br>        description: &#39;Message to the PO to help him test the feature&#39;<br>        required: false<br>        default: &#39;No message left by the developer to help you test :(&#39;<br>      preprod:<br>        description: &#39;Do you want to generate a preprod build? (true/false)&#39;<br>        required: false<br>        default: &#39;false&#39;<br>      prod:<br>        description: &#39;Do you want to generate a prod build? (true/false)&#39;<br>        required: false<br>        default: &#39;false&#39;</pre><p>…will be rendered as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Kr_FDcTbki-VtKtIbOi_yQ.png" /></figure><p>..and will be available directly on the GitHub “actions” section, under the right workflow and after clicking on the right button “Run workflow”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_QVIlq6Cy0Xm5d4-Oi7xbg.png" /></figure><p>In our workflow we ask for 3 inputs:</p><ul><li>“Message”: A message to add to the build descriptions on Firebase</li><li>2 parameters to determine whether or not we should generate builds connected to production and/or pre-production environments</li></ul><p>We can then have access to those inputs parameters and check their values to know if we should run jobs or not:</p><pre>jobs:<br>  deploy_preprod_firebase:<br>    if: ${{ github.event.inputs.preprod == &#39;true&#39; }}<br>    runs-on: macos-10.15<br>    timeout-minutes: 45<br>    steps:<br>      - name: Git - Checkout<br>        uses: actions/checkout@v2.3.4<br>        with:<br>          ref: ${{ github.event.ref }}<br>      - name: Setup - Xcode<br>        run: sudo xcode-select -s /Applications/Xcode_12.3.app<br>      - name: Setup - Ruby and bundler dependencies<br>        uses: ruby/setup-ruby@v1.57.0<br>        with:<br>          ruby-version: 2.4.0<br>          bundler-cache: true<br>      - name: Certificates - Sync ad-hoc<br>        run: bundle exec fastlane sync_certs type:adhoc<br>      - name: Firebase App Distribution - Archive and upload preprod app<br>        run: bundle exec fastlane deploy_to_firebase env:preprod changelog:&quot;${{ github.event.inputs.message }}&quot;</pre><pre>  deploy_prod_firebase:<br>    if: ${{ github.event.inputs.prod == &#39;true&#39; }}<br>    runs-on: macos-10.15<br>    timeout-minutes: 45<br>    steps:<br>      - name: Git - Checkout<br>        uses: actions/checkout@v2.3.4<br>        with:<br>          ref: ${{ github.event.ref }}<br>      - name: Setup - Xcode<br>        run: sudo xcode-select -s /Applications/Xcode_12.3.app<br>      - name: Setup - Ruby and bundler dependencies<br>        uses: ruby/setup-ruby@v1.57.0<br>        with:<br>          ruby-version: 2.4.0<br>          bundler-cache: true<br>      - name: Certificates - Sync ad-hoc<br>        run: bundle exec fastlane sync_certs type:adhoc<br>      - name: Firebase App Distribution - Archive and upload prod app<br>        run: bundle exec fastlane deploy_to_firebase env:prod changelog:&quot;${{ github.event.inputs.message }}&quot;</pre><p>Cherry on the cake, Github Actions jobs run by default in parallel. If we answer “yes” for prod and preprod builds generation we get them both available in ~30 min 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrR86J37V7vB54WjA8q0qw.png" /></figure><p>Thank you for reading! We hope we gave you a great overview of how an iOS CI could be implemented on Github Actions :-)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4504228c9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefork/ios-ci-cd-with-github-actions-e4504228c9d">iOS CI/CD with GitHub Actions</a> was originally published in <a href="https://medium.com/thefork">TheFork Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Updating your app for the iPhone X]]></title>
            <link>https://medium.com/thefork/updating-your-app-for-the-iphone-x-33209fc894d3?source=rss-3ffcec3ffc40------2</link>
            <guid isPermaLink="false">https://medium.com/p/33209fc894d3</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[iphone-x]]></category>
            <dc:creator><![CDATA[Jeremie SIFFRE]]></dc:creator>
            <pubDate>Thu, 02 Nov 2017 10:41:08 GMT</pubDate>
            <atom:updated>2017-11-02T12:07:39.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAyfkfjScGODBSWnHPyFNg.png" /><figcaption>Our brand new home on the brand new iPhone</figcaption></figure><p>As you most certainly know, Apple is finally releasing the iPhone X across multiple countries on November, 3rd, with an unprecedented demand by customers. At TheFork, the European leader restaurant booking service, we have been spending some time to update our iOS application in order to be fully compatible with the new device in time for its release.</p><p>During this process, we found a lot of interesting tips and tricks we would like to share with you.</p><h3>What’s different with the iPhone X?</h3><p>The iPhone X presents a bunch new important interface changes over the previous iPhone iterations:</p><ul><li>a non-20-point status bar height, a first since the introduction of the original iPhone in 2007</li><li>a new screen size, with a resolution of 2436 by 1125 pixels and aspect ratio of around 19:9, differing from the 16:9 found in iPhones of the previous generation</li><li>this translates to a pixel area of of 812 by 375, i.e., the same screen width, in points, than the iPhone 6 but with a new pixel density, which will need “@3x” resolution images</li><li>the presence of new regions, at the top and at the bottom of the screen, in which the iPhone’s infamous “notch” and other UI elements can overlap to your app’s. This includes the handle, which replaces the Home Button</li></ul><h3>What are the challenges?</h3><p>As a result, most developer will need to perform a number of interventions to adapt their apps — interventions which might recall you those needed for iOS 7 in 2013.</p><p>The hardest challenges, in particular, will be faced by those relying on hardcoded 20-point status bar sizes and/or on custom view components which did not take into account top and bottom layout guides. Truth to be told, <strong>topLayoutGuide</strong> and <strong>bottomLayoutGuide</strong> are now deprecated in iOS 11 but if your app already makes use of this API, the work required to make your app comply with iPhone X will be less cumbersome.</p><h3>How to</h3><p>As mentioned, <strong>topLayoutGuide</strong> and <strong>bottomLayoutGuide</strong> are now history, with Apple now suggesting to “<em>use the safeAreaLayoutGuide property of UIView instead</em>”.</p><h4>Via Storyboards</h4><p>To enable the <strong>safeAreaLayoutGuides</strong> on your Storyboards, double check that “Use Safe Area Layout Guides” is turned on in the File Inspector panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*CzMIdqNRb5hB-ChuGIWp5A.png" /></figure><p>Next, for each constraint touching the top or the bottom of the screen, you’ll have to make sure that you set it up using the “Safe Area”. You can check this information by clicking the arrow on the right of the constraint value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMCQNnaskigBk3G_ckiz-w.png" /></figure><p>If you want to modify an existing constraint, just select it and pick the Safe Area.Bottom (or Area.Top) as the First or Second item as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*x4qMwsqFGLWYuVS8_B06aw.png" /></figure><p>Please note that Storyboards in Xcode 9 natively support safe layout guides and, most notably, will manage for you the compatibility mode with older iOS versions. That means that, without further changes, your app will fallback to the traditional bottom layout guide on older phones.</p><h4>Programmatically</h4><p><strong>Using Autolayout</strong></p><p>In case your app uses AutoLayout, the best way of complying with the safe areas is to employ the anchors provided by <strong>safeAreaLayoutGuide</strong>.</p><p>Let’s assume you have a button at the bottom of your view that you don’t want to be overlapped by the native “handle”. You could then write:</p><pre>myButton.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, multiplier: 1.0)</pre><p>Since <strong>safeAreaLayoutGuide</strong> is not available in iOS 10 or earlier, we’ll be adding an extension on UIViewController and/or UIView to expose an API usable on both older and newer versions of iOS alike.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c3b97791668dcc0ac275eb056286a96/href">https://medium.com/media/7c3b97791668dcc0ac275eb056286a96/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49e9fce1d92a26dbbac71a7095b8b2e5/href">https://medium.com/media/49e9fce1d92a26dbbac71a7095b8b2e5/href</a></iframe><h4>Dynamic Changes</h4><p>There are cases in which you might want to update your insets after an event. For instance, when your view has not been loaded yet, the <strong>safeAreaInsets</strong> could still be empty. Also, when your interface rotates, the insets will change according to the position of the “notch”. You can also have your code alter the safeAreaInsets dynamically by using the <strong>additionalSafeAreaInsets</strong>.</p><p>In all the above scenarios, the callback method <strong>viewSafeAreaInsetsDidChange</strong> on UIViewController, or <strong>safeAreaInsetsDidChange</strong> on UIView will be invoked. You can then check the new value and update your constraints or frames accordingly.</p><h4>Manual Layout</h4><p>In case you’ve not chosen AutoLayout you can still use the <strong>safeAreaInsets</strong> property on UIView and layout your subviews as needed.</p><p>If your code needs to be backwards compatible, and that your layout implementation is the viewController, you could add an extension to UIViewController and add a <strong>compatibleSafeInsets</strong> computed property that:</p><ul><li>in case of iOS 11 or later, returns the view’s <strong>safeAreaInsets</strong></li><li>in case of iOS 10 or earlier, returns custom UIEdgeInsets created with the values of <strong>topLayoutGuide</strong> and <strong>bottomLayoutGuide</strong></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31dc17274cc696825d251bdb01afda8d/href">https://medium.com/media/31dc17274cc696825d251bdb01afda8d/href</a></iframe><p>For instance, you could use the snippet above as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/370d7ac85107f24aadd6ea01a3d7a62f/href">https://medium.com/media/370d7ac85107f24aadd6ea01a3d7a62f/href</a></iframe><p>We’re using here <strong>viewDidLayoutSubviews</strong> instead of <strong>viewSafeAreaInsetsDidChange</strong> for sake of preserving the compatibility with older systems, as the latter won’t be called on iOS 10 or older.</p><p>Please note that, unlike <strong>safeAreaInsets</strong>, which is an <strong>UIView</strong> property, the old <strong>layoutGuide</strong> API is only available on <strong>UIViewController</strong>.</p><h3>Conclusion</h3><p>We hope your transition to the new iPhone X screen proceeds as smooth as possible. In our case, that took 5 full days, testing included, for adjusting 20+ different screens while preserving the compatibility with iOS 10 devices.</p><h3>Useful resources</h3><p><strong>Designing for iPhone X</strong></p><p><a href="https://developer.apple.com/videos/play/fall2017/801">https://developer.apple.com/videos/play/fall2017/801</a></p><p><strong>Building apps for iPhone X</strong></p><p><a href="https://developer.apple.com/videos/play/fall2017/201">https://developer.apple.com/videos/play/fall2017/201</a></p><p><strong>Autolayout techniques in Interface Builder</strong></p><p><a href="https://developer.apple.com/videos/play/wwdc2017/412">https://developer.apple.com/videos/play/wwdc2017/412</a></p><p><strong>Modern User Interactions on iOS</strong></p><p><a href="https://developer.apple.com/videos/play/wwdc2017/219">https://developer.apple.com/videos/play/wwdc2017/219</a></p><p><strong>Updating your app for iOS 11</strong></p><p><a href="https://developer.apple.com/videos/play/wwdc2017/204">https://developer.apple.com/videos/play/wwdc2017/204</a></p><p><strong>Human Interface Guidelines for iPhone X</strong></p><p><a href="https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/">https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/</a></p><p><strong>Updating your apps for iPhone X</strong></p><p><a href="https://developer.apple.com/ios/update-apps-for-iphone-x/">https://developer.apple.com/ios/update-apps-for-iphone-x/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33209fc894d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefork/updating-your-app-for-the-iphone-x-33209fc894d3">Updating your app for the iPhone X</a> was originally published in <a href="https://medium.com/thefork">TheFork Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>