我有一个 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 框架目标中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!