M
M
Max Onflic2014-10-13 00:23:02
Objective-C
Max Onflic, 2014-10-13 00:23:02

How to stack c-library (.a) with "-ObjC" flag?

A library with the .a extension is included in the project. When you add the "-ObjC." flag in the Other Linker Flags section, the project stops building with the error . I'm using the GoogleMap SDK. You can't do without this library either. What are the options?

duplicate symbol _gIsOpen in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_IVAR_$_EADSessionController._session in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _g_nReadbufLen in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _g_nWritebufLen in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_IVAR_$_EADSessionController.detegate in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _g_dwTimeOut in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_IVAR_$_EADSessionController._theLock in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_IVAR_$_EADSessionController._protocolString in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_IVAR_$_EADSessionController._accessory in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _gDevType in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _bIsDidEnterBackground in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_IVAR_$_EADSessionController._createThread in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_CLASS_$_EADSessionController in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_METACLASS_$_EADSessionController in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(EADSessionController.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(EADSessionController.o)
duplicate symbol _OBJC_CLASS_$_ReaderInterface in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(ReaderInterface.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(ReaderInterface.o)
duplicate symbol _OBJC_METACLASS_$_ReaderInterface in:
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid_debug.a(ReaderInterface.o)
    /Users/user1/Documents/AvCryptoMobile4iOS/SDK/drivers/Feitian/lib/libiRockey301_ccid.a(ReaderInterface.o)
ld: 17 duplicate symbols for architecture armv7
clang: error:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Onflic, 2014-10-14
@maxonflic

-force_load
$(PROJECT_DIR)/GoogleMaps.framework/GoogleMaps
$(inherited)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question