

- Install fastlane install#
- Install fastlane update#
- Install fastlane for android#
- Install fastlane android#
- Install fastlane mac#
If you go this route, make sure to either commit your pod dependencies into your repo or install the pods in your Bitrise workflow before you run the fastlane step.Īdd a folder to the root of your project and call it "scripts".

The script is already present in the Crashlytics pod folder and fastlane can find it. Side note If you’re using Cocoapods, you wont have to do this or specify the binary path in your Fastfile. This is what we are going to use to upload them using Fastlane… The Firebase SDK includes a script that we can use to upload the dSYM files. Getting the Firebase upload script where you need it. If you need more help getting Fastlane setup in your project see here 2. If you see this result, congratulations! It worked! fastlane init
Install fastlane update#
Don't worry too much about whats in the files as we will update that. The main result should be it will generate a folder in the root of your project called "Fastlane" with two files Appfile & Fastfile. Fastlane may ask you what lanes you might want to setup automatically but you can just select a custom setup. This is as easy as just installing it and running fastlane init in the terminal at the root of your project. Add Fastlane to your projectįirst of all, you're going to need to install Fastlane and add it to your project. These are the steps required to upload your dSYM files automatically using Fastlane & Bitrise together. We wanted to find a way to automate this within our current CI using Bitrise so we wouldn’t ever have to suffer that tedium again! Using Fastane to solve itĬurrently we use Fastlane mostly to handle the signing of our apps, but it’s proved our main saviour here also. Previously we were downloading these files manually from App Store Connect and then manually uploading them to firebase, which as you can imagine, was a very tedious task. With bitcode enabled, the dSYM files only become available to you after your app is done processing on App Store Connect. And hey, it’s a cool feature that we didn’t want to turn off anyway. For our particular use case, our application had WatchOS support and for both WatchOS & tvOS apps, bitcode is required, meaning simply turning it off wasn’t an option. For the crash reporting to work in Crashlytics, it needs dSYM files (debug symbol files) but our issue was our application has bitcode enabled.īitcode was first introduced by Apple with the release of Xcode 7, it allows Apple to re-optimize your app binary to tailor the app to the capabilities of the device used. For our crash reporting, we use Firebase Crashlytics. It allows us to easily find issues within our apps and can give us helpful advice on where to fix them. To test if your terminal supports interactive mode just run command fastlane and you will get this error, if it does not support it: “Could not retrieve response as fastlane runs in non-interactive mode”.Crash reporting is something that's hugely important for all our apps. I use Hyper but you can just use your own favorite terminal that supports this mode. You will need a terminal to run in interactive mode to be able to run Fastlane commands. Make sure to add Gemfile and Gemfile.lock to source control. Install it with this command: ridk install 1 2 3 We experienced that on some machines bundle install, where the error message says something about that it needs ridk to be installed.

Setup Fastlane with bundler like this: (this is as also described in the Fastlane setup guide)

This could just be done with this command: gem install fastlane –NVīut a better setup will be to use bundler, as it installs Fastlane locally for the app project, so that you can have different versions of Fastlane of different projects. But it is actually possible to run Fastlane on a Windows machine.
Install fastlane android#
So we need at least some part of the script to be run on our local machines.įastlane has been the industry standard for iOS deployments for years and have for a few years also supported Android – but only from Mac’s. The reason this is relevant for our choice is that we like a script, that will ask us all the questions about the data needed for an app deployment and handle all our git rules, so that everybody will be able to deploy without much knowledge about the git rules of the project.
Install fastlane mac#
So we needed an automated Android deployment setup, that would work on both Windows and Mac OS.
Install fastlane for android#
In our App development team, we all develop for both iOS and Android but have different setups as some uses a Mac for both iOS and Android development and others have Windows PC for Android development and a Mac mini for iOS development. Although the Google Play deployment process is not nearly as complicated as the Appstore deployment of iOS apps, we still could save a lot of time automating Android deployments.
