Posts

Showing posts from August, 2020

Get your iOS project on the Fastlane — Upload to testflight

  Previously we talked about project setup for multiple environments , fastlane setup and how to manage your profiles with match & also upload to firebase app distribution. This is the final post of the series and I will show you how to upload to testflight your production builds and distribute them to your testers. First, we will use match to create our production provisioning profiles. So open your terminal, navigate to your projects folder and type fastlane match appstore and follow the guide. This will create your production certificates if needed, provisioning profiles will install them into your keychain and will also add them to the git repo (or google cloud storage) you specified during your match initialisation. Ok, now that we got out production certificates open your fastfile and add the following to your fastfile desc "Builds Release-Production & uploads to App Store Connect" lane :app_store do match(type: 'appstore', app_identifier: [...

iOS CI/CD Integration using Gitlab CI and Fastlane

Image
This blog details about the process of setting up CI/CD pipeline for iOS mobile apps using Gitlab CI and fastlane. This would be hugely beneficial for developers who are currently using Gitlab as a code repository for their projects. Nevertheless, the steps detailed with fastlane can be used to collaborate with almost any CI/CD tool of your choice that is currently available in the market. Setting up Gitlab CI in Mac Installing Fastlane in Mac Why Gitlab CI/CD? One of the major benefits of using Gitlab CI/CD is that you are freed from the cumbersome process of creating workflows using a lot of third party plugins and tools. Why use some other third-party tools when you can play around with in-built tools which just a few clicks away from your source code repository. One caveat not to be concealed is that if you are a person who loves GUI and wary of command line, then this might be a little difficult for you. Gitlab CI/CD can...

Fastlane - Hướng dẫn sử dụng Match

Image
  Fastlane - Hướng dẫn sử dụng Match Match - Đồng bộ certificates và profiles trong nhóm bằng git Match Tiếp nối bài giới thiệu về fastlane, một số blog sau sẽ hướng dẫn dùng một số công cụ trong bộ các công cụ trong fastlane để hỗ trợ các iOS dev có thể làm giảm thời gian khi deploy một app mới lên store. Một lợi ích sau khi biết được cách dùng các công cụ này là làm tự động mọi thứ trong quá trình release một app đến người dùng. Match là công cụ giúp tạo mới, đồng bộ certificates và provisioning profile(gọi tắt là profiles) của một app. Match sẽ tạo tất cả certificates & provisioning profiles và lưu vào một git repository riêng. Người có quyền truy cập đến repo đó sẽ có thể lấy và sử dụng. Lý do cần Match Khi deploy một ứng dụng App Store, release bản beta hoặc cài đặt nó trên một thiết bị thật, hầu hết các nhóm cần có một mã riêng cho mỗi thành viên. Điều này dẫn đến cần phải tạo rất nhiều profiles. Dev phải ...

Set up GitLab CI with an iOS project that uses Cocoapods

Image
  We all write tests for our applications and keep them in version controlled systems like GitLab or GitHub. However, how can we configure GitLab to run Unit and UI tests for us? I couldn’t find a lot of documentation explaining how to set up continuous integration for iOS on GitLab, therefore I am writing this article. Victor Peschenkov explains in his article how to use GitLab CI with Fastlane. My article focuses on how to run everything yourself. Requirements In order to set up GitLab Runner for iOS we need the following tools: Mac Xcode 10 GitLab.com account (or a self-hosted one) Homebrew CocoaPods (use Homebrew: brew install cocoapods ) Please install these tools now before continuing. Configure Xcode Make sure to download Xcode form the Mac App Store. Once it is installed open it and create a project to make sure it is completely installed and running. iOS Project I created a sample project to get you started more quickly. Feel free to fork it or use your own pro...

How to Set Up SSH Keys on CentOS 8

Introduction This guide explains how to create SSH keys, add the public key to your CentOS 8 server, and configure sshd for passwordless login. The IP address 192.0.2.123 is an example. 1. Create an SSH key pair Create an SSH key pair on your computer with ssh-keygen . $ ssh-keygen After running this command, you should see the following prompt: Output Generating public/private rsa key pair. Enter file in which to save the key (/your_home/.ssh/id_rsa): Press ENTER to save this SSH key pair into the ./ssh subdirectory of your home directory, or specify an alternate path if you want. After this you should see the following output: Output Your identification has been saved in ~/.ssh/id_rsa. Your public key has been saved in ~/.ssh/id_rsa.pub. The key fingerprint is: your_fingerprint_key username@remote_host The key's randomart image is: +--[ RSA 2048]----+ | ..o | | E o= . | | o. o | | .. | | ..S | | ...