Can I compile Objective-C code to run across multi

2019-06-05 05:25发布

问题:

We have a codebase for a sync library written in Objective-C. In general it's only using stuff from the Foundation framework (NSArray's, NSDictionary's, NSURLConnection's etc.).

We also use some Cocoa-specific functionality in this codebase: KVO and delegation.

Is it possible to compile this codebase to other platforms, similar to how it's possible to compile C/C++ code to multiple platforms? How should I go about doing this? What tools would I need?

edit: The platforms we're mostly interested in (if possible of course): Windows, Android, BlackBerry, Windows Phone 7

Thanks in advance.

回答1:

Here is a delightful article from cocoawithlove - Options for porting Objective-C/Cocoa apps to Windows. It atleast answers how to port ObjectiveC to windows.