kstenerud/iOS-Universal-Framework — Issue #30: ld: duplicate symbol _OBJC_CLASS
Author: kimle78
Created: 2011-10-22 07:05:36+00:00
State: open

Hello,

I'm getting a duplicate symbol linker error. I have an app which includes a sub project which is my fake framework (MyFakeLibrary). The linker error happens fairly consistently where I would clean my project and rebuild it.

When examining into my framework, I see that my object file is included multiple times for the same architecture (ie armv6)

I also noticed that when I do a clean, it's not removing the MyFakeLibrary.embeddedframework directory. The MyFakeLibrary.framework is deleted though.

$ nm MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary |grep SHKSafari.o
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture armv6):
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture armv6):
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture armv6):
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture armv7):
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture armv7):
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture armv7):
nm: no name list
/Phunware/unfuddle/Common/Branches/MyFakeLibrary/Source/MyFakeLibrary/0.1/build/Debug-iphoneos/MyFakeLibrary.framework/Versions/A/MyFakeLibrary(SHKSafari.o) (for architecture i386):