可以编译Objective-C代码以跨多个平台运行吗? [英] Can I compile Objective-C code to run across multiple platforms?
问题描述
我们还在这个代码库中使用了一些Cocoa特定的功能:KVO和委托。
是否有可能将此代码库编译到其他平台,类似于可以将C / C ++代码编译到多个平台?我该如何去做这个?我需要什么工具?
编辑:我们最感兴趣的平台(如果可能的话):Windows,Android,BlackBerry,Windows Phone 7
提前感谢
这是一个令人愉快的文章,来自cocoawithlove - 一个href =http://cocoawithlove.com/2010/04/options-for-porting-objective-ccocoa.html =nofollow>将Objective-C / Cocoa应用程序移植到Windows的选项。它至少回答如何将ObjectiveC移植到windows。
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.
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.
这篇关于可以编译Objective-C代码以跨多个平台运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!