Antonio MG
Antonio MG

Reputation: 20410

Duplicated symbol error when changing to Release

I've been working normally in Debug scheme, now I changed to Release and Im having this error:

duplicate symbol _OBJC_CLASS_$_FMDatabase in /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-eotzriquwrojfrgwpqxtmjmoyrlq/Build/Products/Release-iphonesimulator/libMapView.a(FMDatabase.o) and /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-eotzriquwrojfrgwpqxtmjmoyrlq/Build/Intermediates/XXX.build/Release-iphonesimulator/XXX.build/Objects-normal/i386/FMDatabase.o for architecture i386

Any idea of what is going on?

Upvotes: 0

Views: 168

Answers (1)

JeremyP
JeremyP

Reputation: 86661

You have two classes called FMDatabase, or more likely, you have one class but you are trying to link its object file twice. My guess would be, you have included the .m file in the project but you also have a library with it in.

Upvotes: 1

Related Questions