Book Image

Continuous Delivery for Mobile with fastlane

By : Doron Katz
Book Image

Continuous Delivery for Mobile with fastlane

By: Doron Katz

Overview of this book

Competitive mobile apps depend strongly on the development team’s ability to deliver successful releases, consistently and often. Although continuous integration took a more mainstream priority among the development industry, companies are starting to realize the importance of continuity beyond integration and testing. This book starts off with a brief introduction to fastlane—a robust command-line tool that enables iOS and Android developers to automate their releasing workflow. The book then explores and guides you through all of its features and utilities; it provides the reader a comprehensive understanding of the tool and how to implement them. Themes include setting up and managing your certificates and provisioning and push notification profiles; automating the creation of apps and managing the app metadata on iTunes Connect and the Apple Developer Portal; and building, distributing and publishing your apps to the App Store. You will also learn how to automate the generation of localized screenshots and mesh your continuous delivery workflow into a continuous integration workflow for a more robust setup. By the end of the book, you will gain substantial knowledge on delivering bug free, developer-independent, and stable application release cycle.
Table of Contents (27 chapters)
Title Page
Dedication
www.PacktPub.com
Foreword
Contributors
Preface
Index

Introducing gym


As the official project page states, gym automates the process of building and packaging iOS apps, taking care of the heavys workload, from manually archiving to code signing your app for testing or publishing purposes. You can either use the keyword gym, or the alias build_ios_app. The following is the logo of gym:

Usage

As with any of the other fastlane utilities, gym works even better in concert with other utilities as part of a lane, and we will show you how to integrate gym into our Fastfile later on. For now, let's start off with the simplest command:

fastlane gym

When prompted for the scheme, select Client.

You will get a whole bunch of Terminal text that resembles the following:

...
[17:45:02]: $ xcodebuild -list -project ./Client.xcodeproj
...
...
[17:45:13]: $ set -o pipefail && xcodebuild -scheme Fennec -project ./Client.xcodeproj -destination 'generic/platform=iOS' -archivePath /Users/doronkatz/Library/Developer/Xcode/Archives/2017-07-29/Client\ 2017-07-29\...