0

I am trying to add Lumberjack logger to my project. However it seems that a precompiled library in the project also has this included in it so I get a lot of duplicate symbol errors:

duplicate symbol _OBJC_CLASS_$_DDAbstractLogger in:
    /Users/developer/Library/Developer/Xcode/DerivedData/proj-convqcjaldtjprauqzfewmacvahe/Build/Intermediates/proj.build/Debug-iphonesimulator/MVP3.1_iPhone.build/Objects-normal/i386/DDLog.o
    /Users/developer/Documents/work/proj/Common/Authentec/DownloadableAgentLib/libDownloadableAgent.a(DDLog.o)

Is there a way to fix this?

user426132
  • 1,341
  • 4
  • 13
  • 28
  • Not quite an Xcode question (this is a problem with the setup of the linker, not with the IDE). However, it seems that you added to your project both a static library **and** the to-be-compiled implementation files. –  Oct 01 '13 at 13:22
  • One of the static libraries I use has this (lumberjack) in it. It's a precompiled lib so I can't change it. What is a workaround for this issue? (I need to keep that lib and also add the logging library to the rest of the project) – user426132 Oct 01 '13 at 13:31
  • Use the `ar` tool to remove the extraneous object files from the static library. –  Oct 01 '13 at 13:32
  • can't remove them, ... any other suggestions – user426132 Oct 02 '13 at 08:49
  • @userXXX Why exactly can't you remove them? You surely can. No other suggestions. (or maybe exclude the appropriate source files from tue compilation, not sure if that woild break anything.) –  Oct 02 '13 at 10:24
  • It's a external DRM library... management doesn't want it modified – user426132 Oct 02 '13 at 10:29

0 Answers0