用于 ios 开发的 windows 上的 Xcode

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12637879/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:29:04  来源:igfitidea点击:

Xcode on windows for ios development

iphoneiosobjective-cxcodemobile

提问by Tanveer

Is there a way to develop ios applications in windows?

有没有办法在windows中开发ios应用程序?

How can i setup Xcode on Windows?

如何在 Windows 上设置 Xcode?

采纳答案by Gaurav

You can do this using VMWare on windows but for that you need to have Windows machine with good configuration. But its having following drawback

您可以在 Windows 上使用 VMWare 执行此操作,但为此您需要拥有配置良好的 Windows 机器。但它有以下缺点

1 You cant use latest MAC version

1 您不能使用最新的 MAC 版本

2 Its not possible to build app on device

2 无法在设备上构建应用程序

3 and finally its very slow.

3,最后它非常慢。

Correct me if i'm wrong.

如果我错了纠正我。

回答by dsgriffin

This following information is taken from the following answerby mipadi written a few years ago. It is still relevant now:

以下信息取自mipadi 几年前写的以下答案。它现在仍然相关:

"Xcode is written in Objective-Cand takes advantage of a number of OS X frameworks, so porting it to Windows would require porting all the frameworks on which Xcode relies..

Also, Xcode also uses a number of programming tools that would have to be ported to Windows as well (although some of them already are).

There are multiple reasons why X-Code isn't readily available on Windows:

  • Most development of Objective-C frameworks takes place on OS X, and a lot of the frameworks aren't open-source and thus can't be ported to Windows (they'd have to be rewritten).

  • There are some open-source frameworks that could be used on Windows -- for example, OS X's AppKit and Foundation frameworks are (mostly) available as part of the GNUstep project -- but these frameworks aren't widely used or supported on Windows, and sometimes lack capabilities found in their OS X counterparts."

“Xcode 是用Objective-C许多 OS X 框架编写的,并利用了许多 OS X 框架,因此将其移植到 Windows 将需要移植 Xcode 所依赖的所有框架。

此外,Xcode 还使用了许多必须移植到 Windows 的编程工具(尽管其中一些已经移植了)。

X-Code 在 Windows 上不可用的原因有多种:

  • 大多数 Objective-C 框架的开发都在 OS X 上进行,而且很多框架不是开源的,因此不能移植到 Windows(它们必须被重写)。

  • 有一些开源框架可以在 Windows 上使用——例如,OS X 的 AppKit 和 Foundation 框架(大部分)作为 GNUstep 项目的一部分可用——但是这些框架在 Windows 上没有被广泛使用或支持,有时缺乏 OS X 同类产品中的功能。”

It is also possible to use xCode on Windows via. a Virtual Machine; however, the result will not be what you want. It will be slow, and as you won't have access to many of the important frameworks, iOS development will be out of the question.

也可以通过在 Windows 上使用 xCode。虚拟机;然而,结果不会是你想要的。它会很慢,而且由于您将无法访问许多重要的框架,因此 iOS 开发将​​是不可能的。

If you just want to program Objective-C on Windows as a means of learning the language, I advise downloading Codeblocks- see this documentationin regard to configuring the Objective C Compiler on it.

如果您只想在 Windows 上编程 Objective-C 作为学习语言的一种方式,我建议下载Codeblocks-有关在其上配置 Objective C 编译器的信息,请参阅此文档

回答by Gabriel

You can't use XCode on Windows. I tried a few months ago for 2-3 days to make it work on windows and i finally bought a mac.

您不能在 Windows 上使用 XCode。几个月前我尝试了 2-3 天让它在 Windows 上运行,我终于买了一台 mac。

回答by Oscar

Windows is not a suported platform for Apple, but some people seems to have found a workaround:

Windows 不是 Apple 支持的平台,但有些人似乎找到了解决方法:

http://ipodtoucher55.blogspot.com.es/2010/12/installing-ios-sdk-and-xcode-on-windows.html

http://ipodtoucher55.blogspot.com.es/2010/12/installing-ios-sdk-and-xcode-on-windows.html

回答by Akash Kumar Sharma

I suppose only virtualising Mac on windows pc is the way or get a Hacintosh.

我想只有在 windows pc 上虚拟化 Mac 才是获得Hacintosh 的方法