How to use Crashlytics with iMessage Extensions?

 ̄綄美尐妖づ 提交于 2019-12-05 18:45:10
Mike Bonnell

Mike from Fabric here.

We have experimental support for only Crashlytics on iMessage Extensions. To get things working:

  1. Add your Fabric Run Script Build Phase to your extension's target. Copy and paste the one in your main app.
  2. Add the Fabric and Crashlytics.framework to your extension's linked libraries
  3. Add the Crashlytics.startWithAPIKey("YourActualApiKey") to your extension's view controller's initWithCodermethod. If you don't have an initWithCoder method currently, it should look like this in the end:

    required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) Crashlytics.startWithAPIKey("yourApiKey") }

Reference: https://stackoverflow.com/a/27153383/3975963

Crashlytics isn't supported for iMessage extensions yet.

iMessage extensions aren't officially supported yet, but we're looking into adding it!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!