简体   繁体   中英

How to update Fabric & Crashlytics?

I installed Fabric and crashlytics framework using fabric app and not cocoapods. I needed to update it to comply with this error and for the future.

/Crashlytics.framework/Crashlytics(CrashlyticsPlaceholderStatic.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

and I've read that the update will fix the issue.

Thanks!

Mike from Crashlytics and Fabric here.

If you updated to Crashlytics 3.3.1 and Fabric 1.5.1, then those frameworks support Bitcode enabled app. Release notes here.

I solved this problem this way:

  1. Build settings -> Build Options -> Enable Bit = NO
  2. Build app
  3. Fabric notifies that I have to update Crashlytics framework, so I have built app to update framework
  4. Build settings -> Build Options -> Enable Bit = YES

And everything works fine now.

Go to Build Settings(target's), find the

'Enable Bitcode' key under 'Build options'

Set it's value to NO.

REASON: iOS9 has this option from Xcode 7, By default it is set as YES(I guess). Since, third party frameworks like Crashlytics doesn't updated for bitcode enabled mode. So, set it NO.

To add to the other solutions:

Fabric was not recognizing that my project had an outdated Crashlytics version. It listed my "Installed" version as 3.3.4 when infact it was v3.0.x.

I clicked "Install" on Crashlytics and was prompted to rebuild project. But the project rebuild was failing due to the Bitcode being enabled and my Crashlytics.framework version being outdated.

I disabled Bitcode, and successfully built, at which point Fabric updated my Crashlytics. THereafter, I was able to turn Bitcode back on and continue to build successfully with Crashlytics v3.3.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM