Issue with Crashlytics and Answers kit
Asked Answered
T

2

6

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?

Taillight answered 19/7, 2017 at 8:22 Comment(2)
See my answer here . . #45002235Bail
@Roy, setting bitcode to 'No' is not working for me. Please give any other solution if you have. ThanksTaillight
H
18

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.

Hematology answered 19/7, 2017 at 15:40 Comment(2)
Thanks, Mike. It works. But you definitely should add the note about this (included Answers by default) at the installation doc fabric.io/kits/ios/answers/install Users should not spend time finding this info at stack overflowBlast
Thanks for the feedback.Hematology
D
0

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

Dittmer answered 19/7, 2017 at 9:0 Comment(3)
You try to refer to this link : #27772651Dittmer
I have tried after removing framework path, but not working :(Taillight
When I am removing any one pod file then it is working fine, How can I use both 'Crashlytics' and 'Answers' in same project. Please help...Taillight

© 2022 - 2024 — McMap. All rights reserved.