KeshaviPhone / plcrashreporter

Automatically exported from code.google.com/p/plcrashreporter
Other
0 stars 0 forks source link

ld: 19 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build project which use PLCrashReporter library

i already use PLCrashReporter cr1 and it work well, but when i update new 
version cr2 by the way that i remove all old library and old framework and plus 
new version, but i get this error when i build project that use new reporter's 
lib, how to fix this error

    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _OBJC_CLASS_$_PLCrashReporter in:
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _OBJC_CLASS_$_PLCrashSignalHandler in:
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _PLCrashReportHostArchitecture in:
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _PLCrashReportHostOperatingSystem in:
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _PLCrashReporterErrorDomain in:
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _PLCrashReporterException in:
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/chinhnd/Desktop/svn_version/meshtiles_17122012/meshtiles/libCrashReporter-iphonesimulator.a(libCrashReporter-iphonesimulator.a-i386-master.o)
ld: 19 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Original issue reported on code.google.com by letungi...@gmail.com on 17 Dec 2012 at 6:47

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like you're linking against both the CrashReporter.framework, and the 
libCrashReporter-iphonesimulator.a static library.

The framework contains libCrashReporter-iphonesimulator.a, so it should be 
sufficient to link against that.

Original comment by landon.j.fuller@gmail.com on 18 Dec 2012 at 11:57