LoginSignup
19
11

More than 3 years have passed since last update.

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

Posted at

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 をアップロードできるようになりました!

リンク

19
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
11