且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将 Crashlytics 集成到 iOS 框架目标中?

更新时间:2023-11-16 23:23:10

感谢 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.