Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: can't build, duplicate symbol - ld: 305 duplicate symbols for architecture arm64

I'm having trouble building my Xcode project to device and simulator. I'm receiving a bunch of duplicate symbol errors for CrashlyticsFramework and Fabric.framework.

Error looks something like this:

    duplicate symbol _OBJC_IVAR_$_CLSIcon._prerendered in:
    /Users/Abdi/Desktop/app-ios/Pods/CrashlyticsFramework/Crashlytics.framework/Crashlytics(CLSIcon.o)
    /Users/Abdi/Desktop/bento-ios/Fabric.framework/Fabric(CLSIcon.o)
duplicate symbol _OBJC_IVAR_$_CLSIcon._size in:
    /Users/Abdi/Desktop/app-ios/Pods/CrashlyticsFramework/Crashlytics.framework/Crashlytics(CLSIcon.o)
    /Users/Abdi/Desktop/app-ios/Fabric.framework/Fabric(CLSIcon.o)
duplicate symbol _OBJC_METACLASS_$_CLSIcon in:
    /Users/Abdi/Desktop/app-ios/Pods/CrashlyticsFramework/Crashlytics.framework/Crashlytics(CLSIcon.o)
    /Users/Abdi/Desktop/bento-ios/Fabric.framework/Fabric(CLSIcon.o)
ld: 305 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 681
Joseph Lau Avatar asked Apr 09 '15 23:04

Joseph Lau


People also ask

What is undefined symbols for architecture x86_64?

Why Is the Undefined Symbols for Architecture x86_64: Error Happening? This error is happening due to the lack of included values inside the declared statements in your code. The browser is going to render the information incorrectly and show this error, especially if you are working with Main and Similarity tools.


1 Answers

I just realized that Answers code is included in the 'Crashlytics' pod, so no need to add the 'Answers' pod. Was a little brainfuck to me. They should update their docs.

like image 131
webo80 Avatar answered Oct 11 '22 23:10

webo80