Xcode on windows for ios development [duplicate]

2020-03-13 19:18发布

问题:

Is there a way to develop ios applications in windows?

How can i setup Xcode on Windows?

回答1:

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

1 You cant use latest MAC version

2 Its not possible to build app on device

3 and finally its very slow.

Correct me if i'm wrong.



回答2:

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

"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..

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."

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.

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



回答3:

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.



回答4:

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

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



回答5:

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