I have implemented two static library having the following structure:
FirstStaticLibrary.a
BaseClass.h
@interface BaseClass
-some methods
@end
FirstDerivedClass.h
@interface FirstDerivcedClass:BaseClass
{
}
-some methods
@end
SecondStaticLibrary.a
BaseClass.h
@interface BaseClass
-some methods;
@end
SecondDerivedClass.h
@interface SecondDerivedClass:BaseClass
{
}
-someMethods;
@end
Above two static library is having the common file BaseClass.h and BaseClass.m
These static libraries are added into TestApplication Project.
But while running the application, it's throwing an error:
Duplicate symbols found in /User/Library/Developer/Xcode/..E./FirstStaticLibrary.a (BaseClass.o) and /User/Library/Developer/Xcode/..E./SecondStaticLibrary.a (BaseClass.o) for architecture i386
Please suggest a way to remove this error.