我可以编译 Objective-C 代码以跨多个平台运行吗?
我们有一个用 Objective-C 编写的同步库的代码库。一般来说,它只使用 Foundation 框架中的内容(NSArray、NSDictionary、NSURLConnection 等)。
我们还在这个代码库中使用了一些 Cocoa 特定的功能:KVO 和委托。
是否可以将此代码库编译到其他平台,类似于如何将 C/C++ 代码编译到多个平台?我该怎么做呢?我需要什么工具?
编辑:我们最感兴趣的平台(当然如果可能的话):Windows、Android、BlackBerry、Windows Phone 7
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是来自 cocoawithlove 的一篇令人愉快的文章 - 移植 Objective-C/ 的选项Windows 上的 Cocoa 应用程序。它至少回答了如何将ObjectiveC移植到Windows。
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.