Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't there Xcode for Windows?

Tags:

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

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

Thanks

like image 616
CodeOverload Avatar asked Jan 14 '10 15:01

CodeOverload


People also ask

Will Xcode ever be available for Windows?

Given that Xcode works only on macOS, a solution to get Xcode on Windows would be to install macOS on a Windows PC by means of a virtualization app such as VMware or VirtualBox. Using a virtualization platform provides users with the full functionality of Xcode on your Windows machine.

What is the equivalent of Xcode for Windows?

Xcode is not available for Windows but there are plenty of alternatives that runs on Windows with similar functionality. The best Windows alternative is Sublime Text. It's not free, so if you're looking for a free alternative, you could try Eclipse or IntelliJ IDEA.

Why is Xcode only for Mac?

No, Xcode will only run on MacOS. It is an Apple IDE, so it is meant to only be used on devices with MacOS. Can you develop iOS apps on Windows? Yes, there are many cross-platform tools that allow you to develop apps for both iOS and Android on Windows.

Does Xcode 12 work on Windows?

(It doesn't require a Mac or an Apple Developer Program membership and in a way, you can use Xcode 12 beta on Windows or Linux.)


2 Answers

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

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

  1. 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).
  2. 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.

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.

like image 115
mipadi Avatar answered Sep 21 '22 16:09

mipadi


Same can be said why isn't there Visual Studio 2008 for OSX.

like image 28
Yada Avatar answered Sep 22 '22 16:09

Yada