Search code examples
objective-clinuxcocoacommand-line-tool

Using a cocoa command line application in Linux


I'm writing a command line tool in Objective-C (within xCode) that uses the Foundation Framework. I have to use Objective-C because I need to unarchive objects previously archived by NSKeyedArchiver.

My question is, I'm wondering if I can now use this compiled application on my Linux web server.

I'm not sure if there would be a runtime issue or if the executable could be its own standalone program that could actually run on my Linux server.

I'd appreciate any feedback.


Solution

  • You can use The Cocotron to build your app targeted to Linux. It is an actual Cocoa implementation meant to fully interoperate (although it's not 100% complete of course), as opposed to GNUstep which is not meant to work that way. I use this and it is awesome.