XCode: Two targets, two main files?
I’m working up a game in XCode, and I want to add a helper application that uses the main application’s various classes to build the main application’s data files.
My intuition is that the natural way to do this is to add a second compile target to the application, “Card Adder”, to build this xml file. Unlike the main app, which is Cocoa Touch, I can make this one as a Shell application, to further make it quick & dirty.
Here’s my hang up, and my question:
How do I get around this? What do I use in place of a main.m? How do I signal to the compile target “Card Adder” that this new file will contain it’s main subroutine?
It’s not the name of the file, but the name/signature of the function
That matters. Just make a file with this function in it. You can have only one main per application.