views:

336

answers:

8

Hi,

i don't know why xcode cannot be hacked and become running on windows? is xcode has another programming method?

also, i heared that iphone apps are made with objective c, so why this is not available in windows?

Thanks

+5  A: 

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

Yada
A: 

Mainly for marketing purposes I think. If you could make apps on a PC why would you need a Mac?

Now that Mac's run on Intel, there are hacks out there. You can use things like Mono, but you still need a Mac.

Jack Marchetti
+1  A: 

The same reason you can't install Mac OS X on your PC: Apple chooses to make it available only to people who own their own brand of computers.

sdornan
MAC OSX is hacked, and can be installed on pc, so why XCODE ?
David
Installing an OS on a PC is different than porting apps/frameworks to work on different architectures. You're not just comparing apples to oranges, you're comparing cherries to watermelons (in terms of the amount of work necessary... and maybe I'm understating the watermelons).
Adam V
David
+1  A: 

The "important" bits of Xcode are all available in MinGW.

Ignacio Vazquez-Abrams
And as I recall, MinGW can compile Objective-C, so there IS Objective-C for Windows.
FrustratedWithFormsDesigner
but there is no Cocoa which is the more important part
fuzzy lollipop
Cocoa is part of OS X, not Xcode.
Ignacio Vazquez-Abrams
+3  A: 

XCode is a big application written to set of APIs not present on Windows. Porting it would be an enormous job, maintaining it would be a big job, and there are already popular IDEs on the Windows platform.

dmckee
Someone care to explain the downvote? I mean, this is ahardly a complete scholarly dissertation, but still...
dmckee
+16  A: 

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.

mipadi
Much more complete than my answer. Props to you.
dmckee
+1 Great answer. Add to that the fact that Xcode is made by Apple, which has zero interest in making development on a Microsoft platform easier or more pleasant. One could similarly ask why Microsoft doesn't port Visual Studio to OS X or Linux. The smart thing is for each company to invest in their own platform and development ecosystem — the draw of Xcode and building iPhone apps are part of what makes switching to the Mac all the more appealing. :-)
Quinn Taylor
A: 

it is just called Visual Studio on Windows :-)

fuzzy lollipop
A: 

I guess that porting XCode would be close to very hard (if not impossible) but even if you were able to have a running XCode version under Windows, I guess that it won’t do what you really want it to do. I assume you want a complete iPhone SDK environment which is reliant on XCode and Interface Builder in a very tight way. That’d require the port of Cocoa Frameworks (among other things) that would be, now for real, impossible to port.

Truth is, as much as you will surely need Windows for Windows Phone development, you need a Macintosh computer for iPhone development.

On the other hand, Xcode as an IDE, is not the best in the world, so even if you managed to get Xcode and make it use, .NET (for example), I’d much rather use visual studio for that.

Martín Marconcini