2
1

More than 3 years have passed since last update.

Fastlaneをインストールでハマった話

Posted at

Fastlaneをインストールでハマった話

origon.co.jp
$ sudo gem install fastlane
origon.co.jp
$ fastlane match development --readonly

以下の表示まま、ハマりました!

origon.co.jp
[02:22:08]: Cloning remote git repo...
[02:22:08]: If cloning the repo takes too long, you can use the clone_branch_directly option in match.

理由は以下の記事に記載されていましたが、解決策のリンクが無効になったので、この解決策を追記いたします。
https://qiita.com/jollyjoester/items/e8df75f28b92eb90371c

以下のようにGithubに設定されたssh公開鍵があった場合、
そのファイルと一緒に生成された秘密鍵ファイル(id_rsa)ファイルを以下のディレクトリに配置します。

origon.co.jp
$ cp -p id_rsa ~/.ssh/

後、パーミッション設定を0600に変更します。

origon.co.jp
$ cd ~/.ssh
$ chmod 600 id_rsa

$ ssh-add ~/.ssh/id_rsa

もう一度、
iOSブロジェクトファイルが格納されたディレクトリ下に移動して、以下コメントを実行します。

origon.co.jp
$ fastlane match development --readonly

以下のように、パスプレーズを聞かれますので、登録されれたid_rsdのパスプレーズを入力いたします。

origon.co.jp
[18:59:22]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
[18:59:25]: Checking out branch master...
[18:59:26]: Enter the passphrase that should be used to encrypt/decrypt your certificates
[18:59:26]: This passphrase is specific per repository and will be stored in your local keychain
[18:59:26]: Make sure to remember the password, as you'll need it when you run match on a different machine
[18:59:26]: Passphrase for Match storage: ********
[18:59:30]: Type passphrase again: ********

上記パスワードが通ったら、以下のように無事にプロビジョニングファイルがインストールされました。

origon.co.jp
+---------------------+--------------------------------+--------------------------------+

[19:03:59]: All required keys, certificates and provisioning profiles are installed 🙌
2
1
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
2
1