Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
613 views
in Technique[技术] by (71.8m points)

ios - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...