Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashlytics not reporting crash in Release mode

Crashlytics has been installed in the app in question for a couple of releases now. It's been working great.

But as we prepare the next release Crashlytics has stopped reporting crashes in Release mode. Here are the things I can think of that have changed since our last release.

  • Xcode 7.1. The last release was prepared with Xcode 6.
  • We upgraded to Fabric.
  • We're testing the app on iOS 9.1.

Anyway, with all those changes crashes are still being reported just fine in Debug. Just not in Release (installing from TestFlight after archiving and uploading to iTunes Connect).

Here are the things I've checked:

  • On the Fabric site the app is there, the version and build are there. When I click on Missing DSYMs it tells me there are none missing.

  • startWithAPIKey is being called in didFinishLaunchingWithOptions (added after trojanfoe's question).

  • The api key is correct. Checked and double-checked.

  • In the build script there isn't (and never was) a distinction between Debug and Release. It looks like this:

enter image description here

  • In Build Settings DEBUG_INFORMATION_FORMAT is already set to DWARF with dSYM File (added after StormXX's question):

enter image description here

What am I missing?

like image 548
Murray Sagal Avatar asked Oct 29 '15 02:10

Murray Sagal


1 Answers

I was also facing this issue. My apps DSYMs files were not being automatically uploaded to Fabric as had previously been the case. The root cause was found to be that xcode 7.1 had defaulted the project to bitcode enabled = YES

Setting Bitcode enabled = NO in my Build Settings fixed the auto upload issue.

From Fabrics advanced set up document:

Bitcode enabled applications are required to download their dSYM from Xcode and then upload it to Crashlytics so that we can symbolicate the crashes.

like image 128
upperlacon Avatar answered Sep 27 '22 19:09

upperlacon