Issue with Crashlytics and Answers kit

十年热恋 提交于 2019-12-08 20:21:07

问题


I am using Crashlytics in my app for tracking crashes and Answers kit too for custom events. I am integrating the frameworks into my project using pod file. But I am getting a linking error while both pods are added like

pod 'Fabric'
pod 'Answers'
pod 'Crashlytics'

When I remove one from Answers and Crashlytics, then all is fine.

Error is :

Apple Mach-O Linker (Id) Error Linker command failed with exit code 1 (use to see invocation)

Any ideas?


回答1:


Mike from Fabric here. Remove the Answers pod reference. This should be your setup for both Answers and Crashlytics.

pod 'Fabric'
pod 'Crashlytics'

If you're using Crashlytics, Answers is included by default and that's why you're getting the conflict.




回答2:


Try this : Go to Build Settings -> Enable Bitcode to No or Clean Xcode by ⇧⌘K (Command Shift K) and rebuild your project.



来源:https://stackoverflow.com/questions/45184871/issue-with-crashlytics-and-answers-kit

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