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?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Dev
  • 89
  • 1
  • 5
  • See my answer here . . https://stackoverflow.com/questions/45001735/apple-mach-o-linker-id-error/45003900#45003900 – roy Jul 19 '17 at 08:28
  • @Roy, setting bitcode to 'No' is not working for me. Please give any other solution if you have. Thanks – Dev Jul 19 '17 at 10:25

2 Answers2

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.

Mike Bonnell
  • 16,181
  • 3
  • 61
  • 77
0

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

Hai Nguyen
  • 214
  • 1
  • 7
  • You try to refer to this link : https://stackoverflow.com/questions/27772151/apple-mach-o-linker-warning-directory-not-found-for-option – Hai Nguyen Jul 19 '17 at 09:55
  • I have tried after removing framework path, but not working :( – Dev Jul 19 '17 at 10:26
  • 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... – Dev Jul 19 '17 at 10:52