你能在Linux上运行Xcode吗?Mac OS X是基于BSD Unix的,所以有可能吗?

据我所知,有一个MonoDevelop插件有一个iPhone模拟器。


当前回答

如果您计划在Linux上使用Mac虚拟机,请检查Docker-OSX。它提供了一种使用Docker预构建的Mac vm的简单方法。

要了解更多关于在非苹果硬件上运行苹果软件的合法性,请阅读这篇文章:Hackintosh、OSX-KVM或Docker-OSX合法吗?

其他回答

要做到这一点,最简单的选择是使用OSX副本运行虚拟机。

没有人建议流浪者,所以这里是流浪者盒子为OSX

vagrant init AndrewDryga/vagrant-box-osx --box-version 0.2.1
vagrant up
# editor's notes:
# - this requires virtualbox
# - version 0.3.1 (2016) is down now, so version 0.2.1 (2015)
# - there are notes for building an image one's self at the site

你有一个MACOS虚拟机。但根据苹果的EULA,你仍然需要在MacOS硬件上运行它:但是无论在哪里,这里有一个给所有擦除MacOS并安装Ubuntu的极客们

不幸的是,您不能使用SSH x -转发选项从内部运行编辑器。

不,你听说过MonoTouch,它是用于iPhone开发的。net /mono环境。但你仍然需要一台Mac电脑和官方的iPhone SDK。模拟器是苹果官方的,它作为一个独立的IDE允许你不用Objective C编码,而是用c#编码

这是一个有趣的项目,至少可以说....

编辑:显然,你现在可以在应用商店上发行游戏了,在早期这是行不通的....

我认为你需要MonoTouch插件(不是免费的!)

不,没有办法在Linux上运行Xcode。

不好意思告诉你这些坏消息。:)

I really wanted to comment, not answer. But just to be precise, OSX is not based on BSD, it is an evolution of NeXTStep. The NeXTStep OS utilizes the Mach kernel developed by CMU. It was originally designed as a MicroKernel, but due to performance constraints, they eventually decided they needed to include the Unix portion of the API into the kernel itself and so a BSD-compatible "server" (originally intended to process requests for BSD-compatible kernel messages) was moved into the kernel, making it a Monolithic kernel. It may be BSD compatible in the programming API, but it is NOT BSD.

操作系统的其余部分涉及到objecvec(在Stepstone和GNU/GCC的Richard Stallman的安排下)和基于“显示后脚本”技术的GUI…有点像X服务器,但是带有后记命令。OS X将显示Postscript更改为显示PDF,并将一般硬件要求提高了1000倍(NeXT可以运行8-16MB,现在需要GB)。

Due to the close marriage of GCC and Objective C and NeXT, your best bet at running XCode natively under Linux would be to do a port (if you can get ahold of the source - good luck) utilizing the GNUStep libraries. Originally designed for NextStep and then OpenStep compatibility, I've heard they are now more-or-less Cocoa compatible, but I've not played with any of it in almost 2 decades. Of course that only gets you as far as ObjC, not Swift, and I don't know if Apple is going to OpenSource it.