0

When I use the J2Objc Eclipse Plugin I get the following error while translating my code:

Executing with switches: [ -g --no-package-directories -x objective-c -use-arc --verbose --ignore-missing-imports --prefixes /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/.TEST2Objectc-prefixes  ]
/Applications/J2Objc/j2objc-0.9.6/j2objc -g --no-package-directories -x objective-c -use-arc --verbose --ignore-missing-imports --prefixes /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/.TEST2Objectc-prefixes -encoding UTF-8 -d /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/src /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/src/java/ios/Test.java
error: --ignore-missing-imports is no longer supported

I do not see any option to change the --ignore-missing-imports flag.

How can I fix this error?

Michael
  • 32,527
  • 49
  • 210
  • 370

1 Answers1

1

--ignore-missing-imports flag has been removed by J2Objc developer

Because

That flag is only useful when doing a first pass over a large project, and shouldn't be used normally since all that does is ignore an error that will show up when compiling the generated files.

You should uncheck "Continue translation if an imported class is not found on the class or source paths" for now

Anyway, j2objc-eclipse-plugin developers should remove it.

lifus
  • 8,074
  • 1
  • 19
  • 24
  • 1
    Plugin developer here. The plugin has been updated with changes for J2OBJC 0.9.6. See https://github.com/hemantasapkota/j2objc-eclipse-plugin – Hemanta Feb 03 '15 at 14:17