How to integrate Crashlytics into an iOS framework target?(如何将 Crashlytics 集成到 iOS 框架目标中?)
问题描述
我有一个 iOS 框架目标,我需要为其集成崩溃报告系统.
I have an iOS framework target, and I need integrate Crash reporting system for it.
所以 Crashlytics 看起来不错,但是
So Crashlytics looks good, but
此 Xcode 项目没有任何 Mac 或 iOS 目标
This Xcode project does not have any Mac or iOS targets
那么,有没有办法将 Crashlytics 直接集成到 iOS 框架中?
So, is there any way to integrate Crashlytics directly into iOS framework?
推荐答案
感谢 Mike Bonnell 的 您的评论,上面写着:
Thanks Mike Bonnell for your comment here, which says:
当然,我们的 SDK 只支持初始化一次.在框架和应用程序中初始化会导致冲突.您和应用程序开发人员将拥有不同的 API 密钥,并且无法要求应用程序开发人员授予您的 SDK 与您的框架共享其代码中的堆栈跟踪的权限.将我们包含在您的框架中会给您的框架和使用它的任何人带来问题,所以这就是我说不要包含我们的原因!完全理解 SDK 开发人员希望看到它得到支持.
Sure, our SDK only supports being initialized once. Being initialized in a framework and application would cause a conflict. You and the app developer would have different API keys and there is no way to ask the app developer to give permission to your SDK to share stack traces from their code with your framework. Including us in your framework will cause issues for your framework and anyone that uses it, so that's why I said don't include us! Totally understand that SDK developers would love to see this supported.
这篇关于如何将 Crashlytics 集成到 iOS 框架目标中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将 Crashlytics 集成到 iOS 框架目标中?
![](/xwassets/images/pre.png)
![](/xwassets/images/next.png)
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01