Duplicate symbols for architecture armv7

Hi All,

This is my first time building for IOS, dont’t know much about Xcode…
I always get “duplicate symbols for architecture armv7” error when I try to build my app with XCode. Yes I’ve seen lots of posts with similar issue but none of them give me a clue to solve my case…

I’m using Unity 5.5.2.f1 and Xcode 8.3.
In my project I use IOS friendly pluggins, most of them from the asset store (Facebook SDK, UTNotifications, ImageAndVideoPicker, NativePicker, Firebase, google play services)

What can I do to solve this?
Below the last lines I get from XCode error messages.

Thanks in advance for your atention!

GoogleOpenSource.framework/GoogleOpenSource(GTMLogger.o)

duplicate symbol OBJC_CLASS$_GTMLogNoFilter in:

/Users/joxevillarcarballo1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dilqsoqaaiubuoarzdpeffqndajj/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/GTMLogger.o

/Users/joxevillarcarballo1/Unity Projects/Reser demo/XCode/MaoMaoBeach_IOS_1_4/Frameworks/GoogleOpenSource.framework/GoogleOpenSource(GTMLogger.o)

duplicate symbol OBJC_METACLASS$_GTMLogNoFilter in:

/Users/joxevillarcarballo1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dilqsoqaaiubuoarzdpeffqndajj/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/GTMLogger.o

/Users/joxevillarcarballo1/Unity Projects/Reser demo/XCode/MaoMaoBeach_IOS_1_4/Frameworks/GoogleOpenSource.framework/GoogleOpenSource(GTMLogger.o)

duplicate symbol OBJC_CLASS$_GTMLogger in:

/Users/joxevillarcarballo1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dilqsoqaaiubuoarzdpeffqndajj/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/GTMLogger.o

/Users/joxevillarcarballo1/Unity Projects/Reser demo/XCode/MaoMaoBeach_IOS_1_4/Frameworks/GoogleOpenSource.framework/GoogleOpenSource(GTMLogger.o)

duplicate symbol OBJC_METACLASS$_GTMLogger in:

/Users/joxevillarcarballo1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dilqsoqaaiubuoarzdpeffqndajj/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/GTMLogger.o

/Users/joxevillarcarballo1/Unity Projects/Reser demo/XCode/MaoMaoBeach_IOS_1_4/Frameworks/GoogleOpenSource.framework/GoogleOpenSource(GTMLogger.o)

duplicate symbol OBJC_METACLASS$_GTMLogAllowedLevelFilter in:

/Users/joxevillarcarballo1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dilqsoqaaiubuoarzdpeffqndajj/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/GTMLogger.o

/Users/joxevillarcarballo1/Unity Projects/Reser demo/XCode/MaoMaoBeach_IOS_1_4/Frameworks/GoogleOpenSource.framework/GoogleOpenSource(GTMLogger.o)

ld: 23 duplicate symbols for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

The error means that sonehow the native libraries (plugins) you are using includes the same symbol (function) more than once. In that case the linker throws an error and cannot proceed.

I believe i saw tge same post (and replied) on the Codementor website… I can help you figuring this out, if you like.

1 Like