11
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

CircleCI + fastlane で Firebase App Distribution に ipa をアップロードする

Firebase App Distribution とは

公開前のAndroid/iOSアプリを配布できるサービスです。
https://firebase.google.com/products/app-distribution?hl=ja

config.yml

CircleCI 上で firebase CLI を使用するため、firebase-tools をインストールしましょう。

  fad:
    steps:
      ...
      (いろいろ設定)
      ...
      - run:
          name: Install Firebase Tools
          command: npm install firebase-tools
      - run:
          name: Deploy IPA file to Firebase App Distribution
          command: |
            bundle exec fastlane ios fad

Fastfile

Fastlane に firebase_app_distribution という action が用意されているのでそれを使います。

Distribute iOS apps to testers using fastlane  |  Firebase

  desc "Push a new develop build to Firebase App Distribution"
  lane :fad do
    ...
    (ここでipaを作る)
    ...
    firebase_app_distribution(
      app: "1:123456789:ios:abcd1234",
      testers: "tester1@company.com, tester2@company.com",
      release_notes: "Lots of amazing new features to test out!",
      firebase_cli_path: "./node_modules/.bin/firebase"
    )
  end

これで継続的に Firebase App Distribution に ipa をアップロードできるようになりました!

リンク

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
11
Help us understand the problem. What are the problem?