LoginSignup
1
0

More than 1 year has passed since last update.

Fastlane導入メモ(mac編)

Last updated at Posted at 2022-10-07

何度も繰り返してやっていたため、メモで残しておく。

brewインストール

すでにインストールされたら省略

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

rubyバージョン確認、rbenvインストール

すでにrubyが2.7以上の場合インストールされたら省略。
バージョンが古い場合はrbenvインストールして2.7以上のrubyをインストール

brew install rbenv ruby-build rbenv-gem-rehash readline

.bash_profile.zprofile にPATH の設定を追加

vi ~/.bash_profile or vi ~/.zprofile

追加内容(.zprofile)

export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"

source コマンドで profile を再読み込み

source ~/.bash_profile

rubyインストール

rbenv install -l     // インストール可能なリスト確認

rbenv install 2.7.1    // インストール

システム全体のruby のバージョンをインストールしたものに変更

rbenv global 2.7.1

bundlerインストール

gem install bundler

bundle init

Gemfileを編集

# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

# gem "rails"

gem "fastlane"

fastlane導入

sudo bundle update

fastlane設定

マニュアルでとりあえず実行し手動でFastfileを変更する(4.を選択)

bundle exec fastlane init
1
0
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
1
0