Forums: 

I'm building a Cordova/phoneGap plugin to extend GraceNote so to be accessible via Cordova's plugin architecture. But when I set the -all_load compile flag in xCode I get the following compile-time error from within the GraceNote framework:

duplicate symbol _DecodeCompressedFingerprints in:    /Users/epicore/Documents/Dev/mobients/CordovaTest/GracenoteACR.framework/GracenoteACR(HuffmanDecoder.o)

ld: 1 duplicate symbol for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)

The xCode project "GN_ACR_SDK" compiles and runs perfectly, however when I set the -all_load compiler flag, it also barfs. (Error text pasted below). This would be a case of telling the doctor 'it hurts when I do this' and having the doctor answer 'dont do that', except that to build the Cordova plugin I will have to figure out a way to set the compliler flag to -all_load.  

Is there a way to resolve the duplcate symbols within the GraceNoteSDK framework?

duplicate symbol _OBJC_IVAR_$_GnCircularBuffer.mData in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _OBJC_IVAR_$_GnCircularBuffer.mCapacity in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _OBJC_IVAR_$_GnCircularBuffer.mReadIndex in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _OBJC_IVAR_$_GnCircularBuffer.mWriteIndex in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _OBJC_IVAR_$_GnCircularBuffer.mLength in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _OBJC_CLASS_$_GnCircularBuffer in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _OBJC_METACLASS_$_GnCircularBuffer in:

    /Users/epicore/Library/Developer/Xcode/DerivedData/GN_ACR_SDK-eczhlewpqkqcrwcklhxrdjkbusxm/Build/Intermediates/GN_ACR_SDK.build/Debug-iphoneos/GN_ACR_SDK.build/Objects-normal/armv7/GnCircularBuffer.o

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(GnCircularBuffer.o)

duplicate symbol _DecodeCompressedFingerprints in:

    /Users/epicore/Documents/Dev/mobients/gn-acr-sdk-ios-1.2.0.544/GN_ACR_SDK/GracenoteACR.framework/GracenoteACR(HuffmanDecoder.o)

ld: 8 duplicate symbols for architecture armv7

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

 

Forum Discussions