1

I am trying to get j2Objc working with the XCode build rules setup as explained in the j2Objc Wiki. The problem that I am facing is that the custom build rule which I add for compiling the java files doesn't seem to get executed at all. I have tried to add all kinds of simple build rules which will just echo something but nothing shows up in the build log.

Reference image from my project

The app is a simple single view iOS only application.

Can anyone help me out with figuring out why custom build rules will not work ?

Rhishikeshj
  • 302
  • 2
  • 9

2 Answers2

2

Make sure the Process dropdown has "Java source files" Also, make sure you've added your Java source to the Xcode project. See steps 1 and 7 of the wiki documentation that you referenced for more details.

Kirk Vogen
  • 46
  • 1
1

The wiki page says to use a "Java source files", not "Interface Builder Storyboard files" as your screen capture shows. You also need to define an output file, or Xcode ignores the rule (since it doesn't generate anything).

I just verified that adding a Java source file to a 6.3.1 project works with the wiki page's instructions. Be sure that your app is selected in the "Add to targets:" when adding the Java source file.

Project: enter image description here

Build log: enter image description here

tball
  • 1,984
  • 11
  • 21