Combined with a CI/CD tool you get a complete automation suite for your iOS project. $ fastlane match development and $ fastlane match appstoreįollow the command prompts ( NOTE: save the password you use for these commands somewhere safe) and thats it! Fastlane has now created development and distribution certificates and provisioning profiles for the app. Fastlane consists of a set of tools that will help us in various ways. All we have to do now is create the certificates using: In this file add the app_identifier and username so that it doesnt prompt us for every command that follows. Once the command has run you will have a Matchfile, which can be moved to the previously created fastlane directory. This is going to prompt you for the url of the git repository we just created. Then from the route of the project run fastlane match init. To get started we need to create a new private git repo (name something like "app-name-certificates") which will store our certificate files for us to make them easily shared between developer devices. Android apps are codesigned automatically using a keystore file which we won't go through here but details can be found at. Match is a one of the fastlane commands which is specifically used for IOS certificate creation and management. At the route of the directory we will have a fastlane folder and then the Appfile within that looking something like this:Ĭertificate creation and sharing using match To make things easier we can set up all our fastlane enviroment variables in the Appfile first so that commands don't keep asking us for the information. These are two gem files where we can define variables and "lanes" (sequences of functions) which we can then use as custom commands to automate certain processed. Not only is it quicker, but as everything is now automated the process is much stricter and safer leaving alot less room for human error in the build process! Below is a quick tutorial for getting setup with Fastlane in a React Native project. With some really easy to write custom ruby gem scripts, we can now install the relevant certificates, build and deploy our apps to both app stores as test and productions versions in a matter of seconds! A vast improvement of what was on occasion taking several ours to roll out. Fastlane not only provided the tools we needed to manage codesigning certificates, it also provided extra tools to help streamline how we safely deploy Beta and production builds of our apps. This can be a massive time sink, and so we decided to invest some time to look at some of the tools out there for certificate managment. In some instances it has led to creating multiple certificates for projects causing conflicts when you try to run builds. Over the past couple of years we have been creating more and more apps using React Native and one of the things which consistantly causes issues is the process of sharing certificates to codesign on multiple development devices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |