为什么没有Windows的Xcode? [英] Why isn't there Xcode for Windows?

查看:175
本文介绍了为什么没有Windows的Xcode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么不能对Xcode进行黑客攻击以使其能够在Windows上运行? Xcode还有其他编程方法吗?

Why can't Xcode be hacked to be able to run on Windows? Does Xcode have another programming methods?

另外,我听说iPhone应用程序是用Objective-C制作的,为什么在Windows中不可用?

Also, I heard that iPhone apps are made with Objective-C, so why is this not available in Windows?

谢谢

推荐答案

Xcode是用Objective-C编写的,并且利用了许多OS X框架,因此要将其移植到Windows,将需要移植Xcode依赖的所有框架. .此外,Xcode还使用了许多编程工具,这些工具也必须移植到Windows(当然,其中有些已经).

Xcode is written in Objective-C and takes advantage of a number of OS X frameworks, so porting it to Windows would require porting all the frameworks on which Xcode relies. Furthermore, Xcode also uses a number of programming tools that would have to be ported to Windows as well (some of them already are, of course).

在Windows上不易使用Objective-C的原因有很多:

There are several reasons that Objective-C isn't readily available on Windows:

  1. 大多数Objective-C框架的开发都在OS X上进行,并且许多框架不是开源的,因此无法移植到Windows(必须重写).
  2. 有一些可以在Windows上使用的开源框架-例如,OS X的AppKit和Foundation框架(大部分)可以作为GNUstep项目的一部分使用-但这些框架并未得到广泛使用或支持在Windows上运行,有时缺乏在OS X同类产品中发现的功能.

也就是说,GCC 在Windows上可用,并且由于GCC是Objective-C编译器,因此可以在Windows if ,您拥有正确的可用库(或未使用任何第三方库).但是,Objective-C在没有支持框架的情况下并不是非常有用,并且在Windows上很少见或不存在.

That said, GCC is available on Windows, and since GCC is an Objective-C compiler, you could compile Objective-C code on Windows if you had the right libraries available (or didn't use any third-party libraries). But Objective-C isn't terribly useful without supporting frameworks, and those are rare or nonexistent on Windows.

这篇关于为什么没有Windows的Xcode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆