I am writing a JNI library as a partial replacement to QTJava(which Apple is abandoning) for an app we have and it works well. As part of that effort I created a Cocoa class with a bunch of static methods that I would also like to use in a Cocoa GUI app. What is the best way of doing this so that there is only 1 copy of the code around. Is it possible to build an XCode project on the command line(I would like to stick with all command line tools if possible)