I have some shared code(java) and translate it by j2objc, and I create an static library(xcode) as the following settings.
GENERATED_FILES_DIR = ${SRCROOT}/Generated;
HEADER_SEARCH_PATHS = $(inherited) ${J2OBJC_HOME}/include ${GENERATED_FILES_DIR}
LIBRARY_SEARCH_PATHS = ${J2OBJC_HOME}/lib
OTHER_LDFLAGS = -ljre_emul
and build ok, generate an .a file.
Then I create a single view application and link the .a library, and using the following setting:
INCLUDE = "the include of .a file"
HEADER_SEARCH_PATHS = $(inherited) "${J2OBJC_HOME}/include" "${GENERATED_FILES_DIR}" "${INCLUDE}";
LIBRARY_SEARCH_PATHS = $(inherited) "${J2OBJC_HOME}/lib";
OTHER_LDFLAGS = $(inherited) -l"jre_emul" -l"icucore";
I get the following error:
"_OBJC_CLASS_$_PeopleMode", referenced from:
_OBJC_CLASS_$_Peoples in libTest.a(Peoples.o)
PeopleMode is a model(class) in PeopleMode.java, Peoples is a class in Peoples.h.
Static library project and Single view application are single project.
I donot know why caot find PeopleMode which translate from java.
( but it works ok when i add a target(single view application) to the static library project )
