I create a swift framework with objectiveC code which are translated by j2objc.
I have add java files to compile source, and use the following setting:
GENERATED_FILES_DIR = "${SRCROOT}/Generated";
HEADER_SEARCH_PATHS = "${J2OBJC_HOME}/frameworks/JRE.framework/Headers" "${GENERATED_FILES_DIR}" "${J2OBJC_HOME}/include" $(inherited);
LIBRARY_SEARCH_PATHS = ${J2OBJC_HOME}/lib;
OTHER_LDFLAGS = -ljre_emul
CLANG_ENABLE_OBJC_ARC = NO
and I got error:
include "J2ObjC_header.h" >> Include of non-modular header inside framework module 'XXXXX'
Then i do the following:
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
The error still exist.
I link 'JRE.framework' and set the HEADER_SEARCH_PATHS
The error still exist.
How to fix it?