C的到Java交叉编译

C的到Java交叉编译

本文介绍了Objective-C的到Java交叉编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很明显,交叉编译器不会被苹果App Store允许的,因此开发人员需要熟悉Objective-C的创造的iPhone应用程序。

It is clear that cross compilers will not be allowed by the Apple App Store, so a developer will need to be familiar with Objective-C to create applications for the iPhone.

我想知道,是否有一个交叉编译器,将采取Objective-C的应用code和重建成可以被打包为Android类似的Java应用程序?这样一来,开发人员仍然可以只学习一种语言(OBJ-C),但推出的应用在许多设备上。

I was wondering, is there a cross compiler that will take Objective-C application code and rebuild it into a similar Java application that can be packaged for Android? That way, a developer could still learn just one language (obj-c) but put out applications on many devices.

据我所知,渣口将不太理想比本地codeD应用,但可以想见,节省了开发者一些时间。

I understand that the Java port would be less optimal than a natively coded application, but could conceivably save a developer some time.

编辑:是的,应用程序将是可怕的。但是,如果他们已经建成由MonoTouch的或闪光灯交叉编译器,他们会不会像可怕吗?无法这些相同的方法来使用这些交叉编译器使用?

Yes, the applications would be terrible. But would they not be as terrible as if they had been built by monotouch or the flash cross compiler? Couldn't those same methods be used that these cross compilers use?

推荐答案

我还没有听说过一个交叉编译器,会做你的要求的。一个人即使存在,更大的问题是,该框架(UIKit中,CoreAnimation等)是两个平台之间完全不同。如果没有某种共同的框架,所有的code与框架接口将不得不返工。

I've not heard of a cross-compiler that will do what you are asking. Even if one did exists, the bigger problem would be that the frameworks (UIKit, CoreAnimation, etc) are vastly different between the two platforms. Without some sort of common frameworks, all of the code interfacing with the frameworks will have to be reworked.

这篇关于Objective-C的到Java交叉编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-02 00:22