LoginSignup
2
0

More than 3 years have passed since last update.

[iOS]実機ビルドはできるのに、fastlaneでdeploygateに配信したアプリはクラッシュする時の対処法

Last updated at Posted at 2020-07-09

割と丸一日程度時間溶かしたたのでメモ。

実機ビルドはできるのに、fastlaneでdeploygateに配信したアプリは起動時にクラッシュする。:frowning2::frowning2::frowning2:

クラッシュ前後のコミットで特に悪いことはしてないように見えるのになぜかクラッシュする。

FirebaseのCrashlytics のクラッシュログをみても環境変数jsonをDocodeするところの強制アンラップでこけていることはわかったがなぜこれが起きるかがわからなかった。

setting.swift
Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value.}))): file /Users/vagrant/git/hogehoge.swift, line 283

チームメンバーの助けで解決。

結論: fastalneをupdateしたら治った。

bundle update fastlane

コミットが悪いわけでないのにクラッシュする時は、ライブラリだったり証明書だったりを疑うのが良さそうですね。

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