Duplicate symbol layout error when adding crash and text

I am adding both Fabric and Crashlytics to the pod file. When I update modules, I get a linker error with a duplicate character. I find here that it has the same files in both Fabric.framework and Crashlytics.framework, but how can I solve this problem from my end?

duplicate symbol _CLSMachOEnumerateSlicesAtAddress in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOFileDestroy in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOFileEnumerateSlices in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOFileInitWithPath in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOGetDylibPath in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOGetEncrypted in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOGetLinkedSDKVersion in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOGetMinimumOSVersion in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOGetUUID in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachONormalizeUUID in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceEnumerateLoadCommands in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceGetArchitectureName in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceGetCurrent in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceGetExecutablePath in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceGetUnwindInformation in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceIs64Bit in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) duplicate symbol _CLSMachOSliceWithHeader in: Location/Crashlytics.framework/Crashlytics(CLSMachO.o) Location/Pods/Fabric/iOS/Fabric.framework/Fabric(CLSMachO.o) ld: 17 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Thanks in advance.

+8
ios xcode7 linker-errors crashlytics fabric-twitter
source share
2 answers

1. Uninstall (and go to the recycle bin) Fabric.framework and any installed Fabric bundles and related resources.

  1. Do the cleaning and deep cleaning in the project (ALT-SHIFT-CMD-K)

  2. Add the Fabric module to your subfile: pod 'Fabric'

  3. Add a module to your subfile for each fabric set that your project uses: pod 'Crashlytics'

Note. If you need Crashlytics and Answers, you must install the pod 'Crashlytics', since the answers are included in Crashlytics. Just set the pod 'Answers' if you want "Answers without crashlytics".

Hope this is a problem. If all this fails, delete all the containers and add them again in that order. Good luck

+34
source share

The following steps helped me get rid of this problem:

1. Go to the project path and delete the Pods folder and the Podfile.lock file.

2. Reload the containers again using the "pod install" command.

3.Open xcworkspace and clean it before starting.

Hope this saves time like me.

0
source share

All Articles