LoginSignup
3
2

More than 5 years have passed since last update.

Fabric導入にあたってやったこと

Posted at

Fabricアプリのインストールとログイン

以下からFabricアプリをダウンロードし、インストールする
https://fabric.io/downloads/xcode

インストールが完了したらログインする

Podfileの編集

$ vi Podfile

~
pod 'Fabric'
pod 'Crashlytics'
~
※Podfile内に上記を追加

$ pod install

~
Installing Fabric (1.8.1)
Installing Crashlytics (3.11.1)
~
となればインストール完了

アプリ側の実装

以下にアクセスする。ログイン状態になっていることが必要
https://fabric.io/kits/ios/crashlytics/install

Build Phase -> +ボタンを押してrun script -> テキスト欄に以下を追加

"${PODS_ROOT}/Fabric/run" xxxxxxx

※上記アドレスの「Run Script Build Phase」に記載してある
※ログインしていることで、ユーザーアカウント情報が紐付けられている

XCode10の場合はInput Filesに以下を追加

$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

ビルドおよびアーカイブの作成

ビルド対象をGeneric iOS Device に変更 -> ビルド -> アーカイブの順に行う

アプリの配布

Fabricアプリの方にアプリが反映され、Destributeができるようになれば成功

3
2
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
3
2