<?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 Andre Silva on Medium]]></title>
        <description><![CDATA[Stories by Andre Silva on Medium]]></description>
        <link>https://medium.com/@andreragsilva?source=rss-66a0d23f3284------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9XGfCwvshOZMFv7TJPj4QA.jpeg</url>
            <title>Stories by Andre Silva on Medium</title>
            <link>https://medium.com/@andreragsilva?source=rss-66a0d23f3284------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:30:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreragsilva/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[Taking advantage of AWS Rekognition with Elixir (ex_aws_rekognition )]]></title>
            <link>https://medium.com/@andreragsilva/taking-advantage-of-aws-rekognition-with-elixir-ex-aws-rekognition-4a2c31eeb579?source=rss-66a0d23f3284------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a2c31eeb579</guid>
            <category><![CDATA[image-recognition]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[aws-rekognition]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[elixir]]></category>
            <dc:creator><![CDATA[Andre Silva]]></dc:creator>
            <pubDate>Wed, 19 Jun 2019 08:01:01 GMT</pubDate>
            <atom:updated>2019-06-19T08:01:01.182Z</atom:updated>
            <content:encoded><![CDATA[<p>When attending <a href="https://aws.amazon.com/es/events/summits/madrid/">AWS Summit Madrid 2019</a> (<a href="https://twitter.com/hashtag/AWSSummit?src=hash">#AWSSummit</a>) we had the chance to watch the keynotes and speak with multiple companies that are exploring the vast majority of the Amazon solutions. Most of them justified their choice of using Amazon Web Services (AWS) with three main reasons:</p><ol><li>Offering — a lot of services, where most are easy to integrate with their systems</li><li>Low-cost —when compared to supporting a team to create your own solutions</li><li>Partnership — their engineers are always ready to help your company decide what&#39;s best and to provide technical help</li></ol><p>As you may know, AWS is continuously expanding its value offering to all the different companies it serves. It currently offers more than <a href="https://aws.amazon.com/products/?hp=tile&amp;so-exp=below">150 products</a> from which 19 are in Machine Learning, making it the area with the most solutions available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X3-fncFlpJ4cstaQqQfZxA.png" /><figcaption>Object and Scene Detection (Rekognition — <a href="https://us-east-1.console.aws.amazon.com/rekognition/home?region=us-east-1#/label-detection">Demo</a>)</figcaption></figure><p><a href="https://aws.amazon.com/rekognition/?c=14&amp;pt=6">Rekognition</a> is a ready-to-use Machine Learning product capable of doing real-time video and image analysis such as detect text, detect faces and extract labels.</p><p>This article intent is to emphasise the potential of AWS Rekognition displaying its value with some examples and sample code using an existent package we developed to easily integrate all of its functionalities into your Elixir project.</p><h3>Elixir Package (ex_aws_rekognition 📦)</h3><p>We are integrating some of the Rekognition functionalities with our projects and, since we were not able to find any Elixir package available, we decided to contribute to the community by building a package that wraps the service.</p><p>Building the entire AWS authentication and request handling would greatly increase the effort to implement the package and we didn’t want to reinvent the wheel given that <a href="https://github.com/ex-aws/ex_aws">ex_aws</a> already had everything we needed, we were only missing the specific Rekognition actions implementation.</p><blockquote>We find really important to contribute to the open source community, specially in a language like Elixir where we found the people to be open and willing to share.</blockquote><p>In the end, we got our <a href="https://github.com/coletiv/ex_aws_rekognition">Rekognition package</a> that fully supports all features available at the moment.</p><p>Any contributions are welcomed and greatly appreciated!! 😃</p><h3>Facial Analysis (Landmarks, Emotions, Gender and Age Range)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdJmPL19t5Ud-rU6DzHuFQ.png" /><figcaption>Facial Landmarks (picture from <a href="https://unsplash.com/">Unsplash</a>)</figcaption></figure><p>Using the available <a href="https://docs.aws.amazon.com/rekognition/latest/dg/API_DetectFaces.html">DetectFaces</a> action, you are able to search a given image for faces and their corresponding characteristics and attributes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e170fbeb7b2ad74afbd5b2d115ba7527/href">https://medium.com/media/e170fbeb7b2ad74afbd5b2d115ba7527/href</a></iframe><p>The response is given in real time and we are able to retrieve more concrete characteristics like the facial landmarks (eyes, mouth, nose, etc…) and some deductions like the gender, age range and even the emotions the face may be expressing.</p><p>Rekognition deduced the person in the picture to be a female between the age of 20 and 38, expressing happiness. Take a look at the response below to see the entire attributes you receive.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/611b649a3c23382c652b3d96127a5a6d/href">https://medium.com/media/611b649a3c23382c652b3d96127a5a6d/href</a></iframe><h3>Detect Text (Optical Character Recognition — OCR)</h3><p>There are many use cases one can give to an OCR. One can take advantage of this service by using it to retrieve cards information without the need to type it and it can also be used to identify car plates with decent accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*FM9G4lH0TTYaZJKcuIVJkw.png" /><figcaption>Detect Text (Coletiv business card)</figcaption></figure><p>Using the available <a href="https://docs.aws.amazon.com/rekognition/latest/dg/API_DetectText.html">DetectText</a> action, you are able to retrieve all the locations and pieces of text found within the given image, all this in real time.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/673cd0d5bb7996ca390b3b3434931dd9/href">https://medium.com/media/673cd0d5bb7996ca390b3b3434931dd9/href</a></iframe><p>In the response, you get the list of detections that occurred. Each detection contains a confidence value, a string with the detected text and also the geometry values that help you locate the text within the image.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc32e0c4ab0216e09142f62dbf77984c/href">https://medium.com/media/dc32e0c4ab0216e09142f62dbf77984c/href</a></iframe><p>This functionality is more suited for pictures with less text and doesn’t cope well with a full document analysis use case. AWS is currently working on a different product, <a href="https://aws.amazon.com/textract/">Textract</a>, which they intend it to be used to digitalise paper documents and easily access the information inside them providing means of indexing and searching.</p><h3>Index, List and Identify Faces in Images</h3><p>Imagine you have a system or an application that requires you to identify the users by the face and you happen to have a picture of the person, Rekognition is able to do this almost without any setup necessary on your hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JG9GjBd4AY4RxD6CyCIIFQ.png" /><figcaption>Index Faces / Identify Faces</figcaption></figure><p>Rekognition contains a set of actions that allow you to create collections of faces and these handle the data storage for the faces, meaning you don’t need to store this on your backend.</p><p>The <a href="https://docs.aws.amazon.com/rekognition/latest/dg/API_IndexFaces.html">documentation clearly states</a> that no face is being saved, only the feature vectors for each face are stored and that is enough for the algorithm to recognise faces in other images.</p><p>In order to do such a feature we need to take advantage of multiple actions following the order:</p><ol><li><a href="https://docs.aws.amazon.com/rekognition/latest/dg/API_CreateCollection.html">CreateCollection</a> — create a collection to be able to store faces;</li><li><a href="https://docs.aws.amazon.com/rekognition/latest/dg/API_IndexFaces.html">IndexFaces</a> — index or add faces to an existent collection;</li><li><a href="https://docs.aws.amazon.com/rekognition/latest/dg/API_SearchFacesByImage.html">SearchFacesByImage</a> — detect faces (from a collection) inside an image.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fda5654eb405541749e9b2af15cf780c/href">https://medium.com/media/fda5654eb405541749e9b2af15cf780c/href</a></iframe><p>There are many different use cases for this product and the best way to see how the other companies are taking advantage of Rekognition and the remainder AWS products is to attend the Amazon Summits that are being held all around the 🌍.</p><p>Follow the <a href="https://aws.amazon.com/events/summits/?awsf.events-summit=summit-crosstag%23summit-all">AWS Global Summit Program</a> (<a href="https://twitter.com/hashtag/AWSSummit?src=hash">#AWSSummit</a>) as one may be held close to you, it’s free and they offer a lot of🍹🥗🥣🥤 to make it easier to keep up with all the knowledge being shared.</p><p>As a final note, if you intend to integrate a specific AWS product but it is still not supported by the <a href="https://github.com/ex-aws">ex_aws</a> organisation, make sure you contact us and we can create it together! 😃</p><h4>Thank you for reading!</h4><p>Thank you so much for reading and if you enjoyed this article make sure to hit that 👏👏 button. It means a lot to us! Also<strong> don’t forget to follow </strong><a href="https://coletiv.com/"><strong>Coletiv</strong></a><strong> on </strong><a href="https://medium.com/coletiv-stories"><strong>Medium</strong></a><strong>, </strong><a href="https://twitter.com/coletivstudio"><strong>Twitter</strong></a><strong>, and </strong><a href="https://www.linkedin.com/company/coletiv/"><strong>LinkedIn</strong></a> as we keep posting more and more interesting articles on multiple technologies.</p><p>In case you don’t know, Coletiv is a software development studio from Porto specialised in Elixir, iOS, and Android app development. But we do all kinds of stuff. We take care of UX/UI design, web development, and even security for you.</p><p>So,<a href="https://coletiv.com/contact"><strong> let’s craft something together?</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a2c31eeb579" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Continuous Deployment with Fastlane ]]></title>
            <link>https://medium.com/@andreragsilva/ios-continuous-deployment-with-fastlane-36892ab66cb0?source=rss-66a0d23f3284------2</link>
            <guid isPermaLink="false">https://medium.com/p/36892ab66cb0</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[testflight]]></category>
            <category><![CDATA[travis-ci]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[fastlane]]></category>
            <dc:creator><![CDATA[Andre Silva]]></dc:creator>
            <pubDate>Thu, 10 May 2018 19:27:01 GMT</pubDate>
            <atom:updated>2019-02-18T08:53:33.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4m_ZnJvDv7zSYwD7rw0QA.jpeg" /><figcaption>Illustration by André Resendes (<a href="https://significa.pt/">Significa</a>)</figcaption></figure><p>If you want to add Continuous Deployment (CD) to your iOS applications and you are having a hard time doing so, you have come to the right place.</p><p>We were missing an article describing the complete process of using <a href="https://fastlane.tools/">Fastlane</a> to perform CD safely and with a working example using a Continuous Integration (CI) service (in this case <a href="https://travis-ci.org/">Travis CI</a>). With this in mind, this guide will provide you a step-by-step guide for the entire process.</p><p>We have now deployed multiple applications at our <a href="https://coletiv.com/">company</a> and we found the process of manually delivering the applications to the App Store is a very repeated, frustrating and time consuming process. Using Fastlane we went from a few hours of testing and deployment to just a few minutes.</p><p><strong>This is the second article from a two part series that includes:</strong></p><ol><li><a href="https://medium.com/coletiv-stories/ios-automated-testing-with-fastlane-8c6fb317ed6d">Automated Testing</a> (Introduces Fastlane)</li><li><a href="https://medium.com/coletiv-stories/ios-continuous-deployment-with-fastlane-36892ab66cb0"><strong>Continuous Deployment to TestFlight &amp; App Store</strong></a></li></ol><h3>Notes: Sample Project 📋</h3><p>Notes is an iOS application that allows the user to add, remove and change notes. This project is used to illustrate how to do continuous deployment using Fastlane together with Travis CI.</p><p>The entire project is <a href="https://github.com/coletiv/medium-ios-continuous-deployment-fastlane">available on GitHub</a>, for you to consult and use as you please.</p><h3>Requirements 🎒</h3><ul><li>Create a new <a href="https://appleid.apple.com/account">Apple ID</a> without 2FA. Avoid using your own account, its safer for you and easier to deliver the project along to your client or someone else. <a href="https://docs.fastlane.tools/best-practices/continuous-integration/#two-step-or-two-factor-auth"><strong>Fastlane supports 2FA</strong></a> but you will run into issues when managing the session token (<strong>you should test it though!</strong>);</li><li>Add the account to the project development team in <a href="https://developer.apple.com/">Apple Developer</a> and <a href="https://itunesconnect.apple.com/">iTunesConnect</a>. This will be mandatory to automatically create the necessary certificates and provisioning profiles, and also to upload the applications to <a href="https://developer.apple.com/testflight/">TestFlight</a> or the App Store;</li><li>An <strong>empty</strong> <a href="https://www.github.com/">GitHub</a> <strong>private repository</strong> to store the encrypted certificates and provisioning profiles used in your project. <strong>Don’t use or change </strong>this repository for anything else, the script will manage the repository files on its own.</li></ul><h3>By the end of the article 🎓</h3><p>You will have multiple commands available, all under a single file, that will allow you to:</p><ul><li>Test your application, with a pretty printing at the end;</li><li>Manually deploy your application from your machine, with the build version incrementing by fetching the current version from TestFlight;</li><li>Automatically deploy your application from your CI service.</li></ul><h3>A. Xcode Project Setup 🛠</h3><p>We need to setup the Xcode project for a harmoniously interaction with the Fastlane and Travis CI scripts.</p><p>At the time of writing and after trying to use Xcode with the <strong>Automatically manage signing </strong>selected, we concluded the only viable way to properly implement the continuous deployment was to go with a manual certificate management.</p><p>These are the steps:</p><ol><li>Create the certificates;</li><li>Configure Xcode signing to the new certificates;</li><li>(Optional) Register more devices.</li></ol><h3>A.1. Certificate Management using <a href="https://docs.fastlane.tools/actions/match/">Match</a> (from Fastlane)</h3><p>You will need the Apple account and the GitHub repository mentioned in the <a href="https://medium.com/p/36892ab66cb0#1519"><strong>Requirements </strong>🎒</a> section. Just use the init command and follow the steps shown (you will be prompted the repository URL).</p><pre>fastlane match init</pre><p>By the end of the script you will have created a Matchfile inside the fastlane folder. Open it and change the app_identifier and the username to your application bundle identifier and the Apple ID of the account created, respectively.</p><p>Now we need to run the command to create the certificates to the desired profile type. Since we will want to configure the Xcode project correctly, we are creating the development and the appstore types.</p><p>Run the development script, a <strong>passphrase</strong> will be prompted to encrypt and decrypt the certificates, save it since we will later need it.</p><pre>fastlane match development</pre><p>Proceed with the appstore script:</p><pre>fastlane match appstore</pre><p>Every certificate needed will be created, remember that this will create the certificates for all the devices listed in the <a href="https://developer.apple.com/account/ios/device/">developer account certificate manager</a>, if you need to add more check step<strong> </strong><a href="https://medium.com/p/36892ab66cb0#c242"><strong>3. Register Devices</strong></a><strong> </strong>ahead.</p><h3>A.2. Xcode Configuration</h3><p>After you run the scripts above, every certificate will be installed in your computer. This way you can open your .xcworkspace or .xcodeproj and configure your targets signing accordingly.</p><p><strong>A.2.1. Disable Automatically Manage Signing</strong></p><p><strong>Remember to associate a specific provisioning profile with a configuration, an example using the default Xcode configurations:</strong></p><ul><li>match Development for <strong>Debug</strong></li><li>match AppStore for <strong>Release</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aa-RUgFCGZSWOmgIZwi8sw.png" /><figcaption>Xcode (Target Signing Configuration)</figcaption></figure><p>As you can see, we disabled <strong>Automatically manage signing </strong>and set the match created provisioning profiles to their respective configuration.</p><p><strong>NOTE: </strong>Leave the test targets (In the picture above: NotesTests and NotesUITests) with the Automatically manage signing setting turned ON.</p><p><strong>A.2.2. Enable Apple Generic Versioning System</strong></p><p>This is only if you want Fastlane to manage the versioning of the application, it needs to use the Apple Generic system in order to know how it should increment the build version automatically.</p><p>To do this you can either configure the project (like the example below) or the target depending on what suits you best:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZUnwAkMGJ22Y4aT3BF5Lg.png" /><figcaption>Xcode (Project Versioning Configuration)</figcaption></figure><h3>A.3. Register Devices 📱</h3><p>This step isn’t mandatory but if you are testing with multiple devices, you will want to register them and create the appropriate provisioning profiles to be able to run the application on those devices.</p><p>In order to register devices you will need a <strong>name</strong> and a <strong>UUID</strong>. If a device is connected to your computer, you can use Instruments to list all the connected devices and find these two parameters using the command:</p><pre>instruments -s devices</pre><p>After retrieving the name and UUID of the devices you can do two things:</p><ol><li>Register a <strong>single device</strong> via command line using the tool <a href="https://docs.fastlane.tools/actions/register_device/">register_device</a>:</li></ol><pre>fastlane run register_device name:&quot;iPhone 8&quot; udid:&quot;d629fef002af1...&quot;</pre><p>2. Register <strong>multiple devices</strong> by using the Fastlane tool <a href="https://docs.fastlane.tools/actions/register_devices/">register_devices</a>. Unfortunately there is no command line support at the time of writing and I can’t provide an example, if this changes please let me know.</p><p><strong>NOTE: </strong>You will need to repeat the step <a href="https://medium.com/p/36892ab66cb0#f7de"><strong>1.</strong> <strong>Certificate Management using Match</strong></a><strong> with Forcing </strong>to update the <strong>Development</strong> provisioning profiles with the new devices.</p><pre>fastlane match development --force </pre><p>The <strong>AppStore</strong> <strong>provisioning profiles</strong> are not specific to the list of devices you have registered therefore they <strong>don’t need</strong> <strong>to be</strong> <strong>updated</strong>.</p><h3>B. Fastlane Setup 🚀</h3><p>After configuring Xcode, we will need to write the Fastlane scripts to perform the manual and automatic deployment.</p><p><strong>NOTE: </strong>If you don’t have any builds uploaded to Testflight or the App Store, you need to perform a manual deployment before you can automate the process.</p><p>We need to update the <a href="https://github.com/coletiv/medium-ios-continuous-deployment-fastlane/blob/master/fastlane/Appfile">Appfile</a>, located inside the <a href="https://github.com/coletiv/medium-ios-continuous-deployment-fastlane/tree/master/fastlane">fastlane</a> folder, to contain the app_identifier and the apple_id these two are mandatory.</p><p>The itc_team_id and the team_id are only needed if your Apple ID is integrated into more than one team on the Apple Developers Portal and iTunesConnect.</p><p><strong>NOTE: </strong>If your Apple ID is in multiple teams, remove the settings and run the <a href="https://medium.com/p/36892ab66cb0#5ca3"><strong>B.1. Manual Deployment</strong></a><strong> </strong>script, extract the iTunesConnect ID and the Team ID from the script log (you will be prompted to select a team) and set them in the Appfile.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e03b6c5463f0a3604a907dad68497e7/href">https://medium.com/media/2e03b6c5463f0a3604a907dad68497e7/href</a></iframe><h3>B.1. Manual Deployment</h3><p>We now need to create the Fastlane lane responsible for the manual deployment, we called it manual_testflight, check the Fastfile below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d8a4344aff85dee773e54d079b3e440/href">https://medium.com/media/0d8a4344aff85dee773e54d079b3e440/href</a></iframe><p>The script will fetch all the necessary certificates, increment the build number by checking the latest build uploaded to iTunesConnect, create an .ipa file and upload it to TestFlight.</p><p>Before running the script we will need to set some environmental variables: the Apple ID password and the passphrase I said you would need later during step <a href="https://medium.com/p/36892ab66cb0#f7de"><strong>A.1. Certificate Management using Match</strong></a><strong>.</strong></p><pre>export FASTLANE_PASSWORD=”YOUR_APPLE_ID_PASSWORD”<br>export MATCH_PASSWORD=”YOUR_CERTIFICATES_PASSPHRASE”</pre><p>If this is the first build you are uploading, you might get a version prompted, just press Enter and it will properly get the initial version (1.0).</p><p><strong>NOTE: </strong>If you didn’t follow step <a href="https://medium.com/p/36892ab66cb0#f7de"><strong>A.1. Certificates Management using Match</strong></a><strong>, </strong>you will not have the necessary certificates on your computer to perform the manual deployment.</p><p>Now we only need to run the manual_testflight lane:</p><pre>fastlane manual_testflight</pre><h3>B.2. Automatic Deployment</h3><p>For the automatic deployment we need to add some changes to the manual lane and we created the lane travis_testflight, you can check in the Fastfile below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bbe93966f42eef0921a716d945ae661/href">https://medium.com/media/0bbe93966f42eef0921a716d945ae661/href</a></iframe><p>This script will do the same thing the manual does, but will take into account an extra measure of security. It will create a locked keychain and save the certificates there and, by the end of the script, it will delete the keychain along with all the downloaded certificates.</p><p><strong>NOTE: </strong>Do not run this lane on your personal computer, it will mess with your keychain and you might end up losing your keychain data. Use it only on the CI machines.</p><h3>C. Travis CI Setup</h3><p>As you were able to see in section <a href="https://medium.com/p/36892ab66cb0#58f9"><strong>B.2. Automatic Deployment</strong></a><strong>, </strong>the script contains environmental variables. We will need to encrypt those into the Travis CI script and some other variables.</p><p>For this step you will need five environmental variables, some are the same as before:</p><ul><li><strong>MATCH_PASSWORD</strong> = The certificates passphrase;</li><li><strong>MATCH_KEYCHAIN_NAME</strong> = A keychain name (choose);</li><li><strong>MATCH_KEYCHAIN_PASSWORD</strong> = A keychain password (choose);</li><li><strong>FASTLANE_PASSWORD</strong> = Apple account password;</li><li><strong>CI_USER_TOKEN </strong>= GitHub Personal Access Token with repo permissions, you can get it <a href="https://github.com/settings/tokens">here</a> (it will be necessary to access the private repository with the certificates).</li></ul><p>After you get all those, you need to encrypt them onto your .travis.yml file, to do so just insert the following five commands, one by one:</p><pre>travis encrypt &#39;MATCH_PASSWORD=YOUR_CERTIFICATES_PASSPHRASE&#39; --add env.global</pre><pre>travis encrypt &#39;MATCH_KEYCHAIN_NAME=KEYCHAIN_NAME&#39; --add env.global</pre><pre>travis encrypt &#39;MATCH_KEYCHAIN_PASSWORD=KEYCHAIN_PASSWORD&#39; --add env.global</pre><pre>travis encrypt &#39;FASTLANE_PASSWORD=YOUR_APPLE_ID_PASSWORD&#39; --add env.global</pre><pre>travis encrypt &#39;CI_USER_TOKEN=YOUR_PERSONAL_ACCESS_TOKEN&#39; --add env.global</pre><p>This will add the environmental variables directly to your travis script. Now we just need to add a command to provide GitHub access to the Travis machine duringbefore_install and execute the Fastlane lanes during scriptphase, you can check the final script below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c48eccb98d0eaa1424347ca9c75f7b73/href">https://medium.com/media/c48eccb98d0eaa1424347ca9c75f7b73/href</a></iframe><h3>Time Saving Tip 🕐</h3><p>If you are tired of getting the Missing Compliance warning on iTunesConnect, you can add a key to your Info.plist file that automatically complies with the export policies.</p><p>Set the key ITSAppUsesNonExemptEncryption boolean to NO, remember you should only use this if it applies to your project (more info <a href="https://stackoverflow.com/questions/35841117/missing-compliance-in-status-when-i-add-built-for-internal-testing-in-test-fligh">here</a>).</p><h3>Thank you for reading! 😊</h3><p>I hope this guide helps you and your team saving some time with the deployments and remember to <a href="https://twitter.com/fastlanetools">continuously check Fastlane advancements and updates</a>. More and more tools will come that may expedite this enduring process of deployment!</p><p>Thank you so much for reading and if you enjoyed this article make sure to hit that 👏👏 button. It means a lot to us! Also<strong> don’t forget to follow </strong><a href="https://coletiv.com/"><strong>Coletiv</strong></a><strong> on </strong><a href="https://medium.com/coletiv-stories"><strong>Medium</strong></a><strong>, </strong><a href="https://twitter.com/coletivstudio"><strong>Twitter</strong></a><strong>, and </strong><a href="https://www.linkedin.com/company/coletiv/"><strong>LinkedIn</strong></a> as we keep posting more and more interesting articles on multiple technologies.</p><p>In case you don’t know, Coletiv is a software development studio from Porto specialised in Elixir, iOS, and Android app development. But we do all kinds of stuff. We take care of UX/UI design, web development, and even security for you.</p><p>So,<a href="https://coletiv.com/contact"><strong> let’s craft something together?</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36892ab66cb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Automated Testing with Fastlane ]]></title>
            <link>https://medium.com/@andreragsilva/ios-automated-testing-with-fastlane-8c6fb317ed6d?source=rss-66a0d23f3284------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c6fb317ed6d</guid>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[fastlane]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[travis-ci]]></category>
            <dc:creator><![CDATA[Andre Silva]]></dc:creator>
            <pubDate>Mon, 26 Feb 2018 16:14:59 GMT</pubDate>
            <atom:updated>2018-05-10T19:31:03.871Z</atom:updated>
            <content:encoded><![CDATA[<p>If you want to automatically test your iOS applications in your <a href="https://en.wikipedia.org/wiki/Continuous_integration">Continuous Integration</a> (CI) service of choice, Fastlane is the tool for you.</p><p>You no longer need to browse the Internet in search of a script or create your own. It usually becomes extensive, less scalable and harder for someone else to quickly adjust it to new needs.</p><p>This article introduces <a href="https://fastlane.tools/">Fastlane</a> and explains how to use the <a href="https://docs.fastlane.tools/actions/scan/">Scan</a> tool in order to achieve Automated Testing.</p><p><strong>Due to the length of the article it is split into two parts that can be followed independent of each other:</strong></p><ol><li><a href="https://medium.com/coletiv-stories/ios-automated-testing-with-fastlane-8c6fb317ed6d"><strong>Automated Testing</strong></a></li><li><a href="https://medium.com/coletiv-stories/ios-continuous-deployment-with-fastlane-36892ab66cb0">Continuous Deployment to Testflight &amp; App Store</a></li></ol><h3><a href="https://fastlane.tools/">Fastlane</a></h3><p>Fastlane, currently maintained by Google, is a <a href="https://en.wikipedia.org/wiki/Continuous_delivery">Continuous Delivery</a> (CD) tool that comes with a wide set of base tools, each with its own purpose, being testing, deployment, incrementing project versions and many others. These will probably be more than enough for you, but you can also create or integrate plugins from the community.</p><p>In the old days, you had to create your own solution or fetch multiple scripts from other people in order to be able to automate the process of building and deploying your projects. This is why Fastlane is so great, you will find everything you need in one place, with a community to help you if necessary and a simple and embracing configuration that fits your needs.</p><p>If you are worried about pairing Fastlane with your CI service of choice, it already has tools to support the most popular ones: <a href="https://travis-ci.com/">Travis CI</a>, <a href="https://blog.bitrise.io/introducing-fastlane-on-bitrise">Bitrise</a>, <a href="https://circleci.com/">Circle CI</a> and <a href="https://jenkins.io/">Jenkins</a>.</p><p><a href="https://docs.fastlane.tools/getting-started/ios/setup/"><strong>Installation</strong></a></p><p>Installing Xcode command line tools:</p><pre>xcode-select --install</pre><p>Installing Fastlane:</p><pre>[sudo] gem install fastlane</pre><pre>OR</pre><pre>brew cask install fastlane</pre><p><strong>NOTE: </strong>Make sure you have your terminal locale set to en_US.UTF-8. You can also add these to your .bash_profile file or to your terminal configuration.</p><pre>export LC_ALL=en_US.UTF-8<br>export LANG=en_US.UTF-8<br>export LANGUAGE=en_US.UTF-8</pre><p><strong>NOTE: </strong>Make sure you have the correct Xcode selected</p><pre>xcode-select -p</pre><p><strong>Setup Fastlane</strong></p><pre>fastlane init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*ZL7nzoXU2AQaKY1ME7QJjw.png" /></figure><p>As you can see, Fastlane already comes with three base setups to facilitate the deployment automation, but this article only focus on automatically testing your applications, we will choose 4. Manual setup .</p><p>Fastlane will create a folder fastlane with an Appfile and a Fastfile which we can ignore for now.</p><p>For a more detailed tutorial or if you are having any problems following the guide so far, you can follow <a href="https://docs.fastlane.tools/getting-started/ios/setup/">Fastlane setup guide</a>.</p><h3>Notes: Sample Project 📋</h3><p>Notes is an iOS application that allows the user to add, remove and change notes. This project is used to illustrate how to do automated testing using Fastlane together with Travis CI.</p><p>The entire project is <a href="https://github.com/coletiv/medium-ios-automated-testing-fastlane">available on GitHub,</a> for you to consult and use as you please.</p><h3>Testing using <a href="https://docs.fastlane.tools/actions/scan/">Scan</a> (from Fastlane)</h3><p>Now we have to prepare the application for testing using Fastlane, more specifically, the Scan tool.</p><pre>fastlane scan init</pre><p>This command will create a Scanfile under your fastlane folder. This is the file you need to configure in order to properly test your application.</p><p>Simple configuration (for all the available configurations visit section <a href="https://docs.fastlane.tools/actions/scan/#parameters"><strong>Parameters</strong></a>):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bce0dddb9460c83e60038f6bb8567c3/href">https://medium.com/media/5bce0dddb9460c83e60038f6bb8567c3/href</a></iframe><p>This simple configuration tests the scheme Notes , for the specified devices (iPhone 8), prints the results and sends a notification to <a href="https://slack.com/">Slack</a>.</p><pre>fastlane scan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*vyOQPvHg3xcaQKXpShZ-ew.png" /><figcaption>Console Print</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*46u1i2q9hooIUI5Ihz-HAA.png" /><figcaption>Slack Notification</figcaption></figure><p><strong>NOTE: </strong>To get a slack_url you need to add the app <a href="https://slack.com/apps/A0F7XDUAZ-incoming-webhooks">Incoming WebHooks</a> to your Slack and use the provided url, as simples as that!</p><h3>Automated Testing using Travis CI</h3><p>All you need to do now is add the scan command to your CI service script and you are good to go.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/714aaf205434387c31a9707633f5ed9f/href">https://medium.com/media/714aaf205434387c31a9707633f5ed9f/href</a></iframe><p>In the future, you don’t need to modify the CI script to cope with testing related changes, you can do almost everything under the Scanfile .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c6fb317ed6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>