0

I need to translate itext source jar to objective c using J2ObjC. I use the Xcode Build rules at here . But when I add this script

"${J2OBJC_HOME}/j2objc" --build-closure -d ${DERIVED_FILES_DIR} -sourcepath "${PROJECT_DIR}/" --no-package-directories "${PROJECT_DIR}/Classes/Othello/Engine/itext-2.1.7-sources.jar" ${INPUT_FILE_PATH};

I get build errorsenter image description here

enter image description here

This project was built and run successfully without my script. Please help me Thanks

ldt25290
  • 43
  • 2
  • 8

1 Answers1

0

Try removing the last ${INPUT_FILE_PATH}. j2objc's flags are modeled after javac's (to support build tools), so any argument after the last flag is treated as a source file. Since the sources jar holds all the source files, the ${INPUT_FILE_PATH} tells the compiler to compile a directory, which it can't do.

tball
  • 1,984
  • 11
  • 21
  • I have changed to "${J2OBJC_HOME}/j2objc" --build-closure -d ${DERIVED_FILES_DIR} -sourcepath "${PROJECT_DIR}/" --no-package-directories "${PROJECT_DIR}/Classes/Othello/Engine/itext-2.1.7-sources.jar"; but build failed – ldt25290 Oct 25 '16 at 01:31