Why can't Xcode be hacked to be able to run on Windows? Does Xcode have another programming methods?
为什么Xcode不能被黑客攻击才能在Windows上运行? Xcode有其他编程方法吗?
Also, I heard that iPhone apps are made with Objective-C, so why is this not available in Windows?
另外,我听说iPhone应用程序是用Objective-C制作的,为什么Windows中没有这个?
Thanks
谢谢
6 个解决方案
#1
72
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).
Xcode是用Objective-C编写的,并利用了许多OS X框架,因此将其移植到Windows需要移植Xcode所依赖的所有框架。此外,Xcode还使用了许多编程工具,这些工具也必须移植到Windows(当然其中一些已经移植到Windows)。
There are several reasons that Objective-C isn't readily available on Windows:
Windows上没有Objective-C可用的原因有几个:
- 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).
- Objective-C框架的大多数开发都是在OS X上进行的,很多框架都不是开源的,因此无法移植到Windows(它们必须被重写)。
- 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.
- 有一些开源框架可以在Windows上使用 - 例如,OS X的AppKit和Foundation框架(大部分)作为GNUstep项目的一部分提供 - 但这些框架在Windows上没有被广泛使用或支持,有时缺乏OS X对应的功能。
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.
也就是说,GCC在Windows上可用,并且由于GCC是Objective-C编译器,如果您有合适的库(或者没有使用任何第三方库),您可以在Windows上编译Objective-C代码。但是,如果没有支持框架,Objective-C就不是非常有用,而且在Windows上很少或不存在。
#2
19
Same can be said why isn't there Visual Studio 2008 for OSX.
同样可以说为什么没有Visual Studio 2008 for OSX。
#3
7
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.
Xcode是一个大型应用程序,写入Windows上不存在的API集。移植它将是一项巨大的工作,维护它将是一项巨大的工作,并且Windows平台上已经有流行的IDE。
#4
0
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.
我想移植XCode会非常接近(如果不是不可能的话),但即使你能够在Windows下运行一个正在运行的XCode版本,我想它也不会做你真正想做的事情。我假设您需要一个完整的iPhone SDK环境,它以非常严格的方式依赖于XCode和Interface Builder。这需要Cocoa Frameworks的端口(以及其他东西)现在是真的,不可能移植。
Truth is, as much as you will surely need Windows for Windows Phone development, you need a Macintosh computer for iPhone development.
事实上,就像你肯定需要用于Windows Phone开发的Windows一样,你需要一台用于iPhone开发的Macintosh电脑。
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.
另一方面,Xcode作为IDE,并不是世界上最好的,所以即使你设法获得Xcode并使其使用.NET(例如),我更倾向于使用visual studio。
#5
0
Actually you can install Mac OS X on any Intel CPU based machine. It is legal as you own the orginal install DVD for the OS X system. After aquiring a copy of Virtualbox or VMWare (either is great, personally I prefer Virtualbox because the display settings are more customizable). Virtualbox allows setup on initial setup while VMWare requires an extra step to ensure compatibility. You can then find the steps online to setup a virtual copy of MacOS X.
实际上,您可以在任何基于Intel CPU的计算机上安装Mac OS X.您拥有OS X系统的原始安装DVD是合法的。在获取Virtualbox或VMWare的副本之后(要么很棒,我个人更喜欢Virtualbox,因为显示设置更加可定制)。 Virtualbox允许在初始设置时进行设置,而VMWare需要额外的步骤以确保兼容性。然后,您可以在线找到设置MacOS X虚拟副本的步骤。
After going through the steps to install the OS in the Virtual Machine, you can then go through the process to find XCode in the Apple App Store. From there, have at it. Start programming in XCode and have a good time. Since XCode has its own device emulator you have a built in platform for iOS testing. There may be times where it is a bit buggy but that is to be expected with ANY emulator for ANY system you run.
完成在虚拟机中安装操作系统的步骤后,您可以通过该过程在Apple App Store中查找XCode。从那里开始吧。在XCode中开始编程并享受愉快的时光。由于XCode拥有自己的设备模拟器,因此您可以使用内置的iOS测试平台。可能有时会出现一些问题,但对于您运行的任何系统,可以使用任何模拟器进行预期。
After you get everything installed and going, sit back and enjoy the programming ride. The only catch is if you want to post anything on the Apple App store and then you will have to deal with getting an Apple Dev License. Objective C can be a bit difficult at times but, at the same time, it can be very satisfying when you solve those programming problems (as with any programming language right ;-) )
在安装完所有物品之后,请坐下来享受编程之旅。唯一的问题是,如果您想在Apple App商店发布任何内容,那么您将不得不处理获得Apple Dev许可证的问题。 Objective C有时可能有点困难,但同时,当你解决那些编程问题时,它会非常令人满意(就像任何编程语言一样;-))
Enjoy
请享用
PS... this VM install keeps up with all updates from the Apple App Store so keeping the system updated won't be a problem.
PS ...此VM安装可以跟上Apple App Store的所有更新,因此保持系统更新不会成为问题。
PSS... I will not condone anyone for where their source of software is but do keep in mind, setting up a VM with VMWare or Virtualbox and an install DVD is only legal IF you personally OWN the install DVD you created the install image from yourself!
PSS ...我不会宽恕任何人,因为他们的软件来源在哪里,但请记住,使用VMWare或Virtualbox设置虚拟机和安装DVD只是合法的如果您个人拥有您创建安装映像的安装DVD你自己!
#6
-1
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.
您无法在PC上安装Mac OS X的原因相同:Apple选择仅将其提供给拥有自己品牌计算机的用户。
#1
72
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).
Xcode是用Objective-C编写的,并利用了许多OS X框架,因此将其移植到Windows需要移植Xcode所依赖的所有框架。此外,Xcode还使用了许多编程工具,这些工具也必须移植到Windows(当然其中一些已经移植到Windows)。
There are several reasons that Objective-C isn't readily available on Windows:
Windows上没有Objective-C可用的原因有几个:
- 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).
- Objective-C框架的大多数开发都是在OS X上进行的,很多框架都不是开源的,因此无法移植到Windows(它们必须被重写)。
- 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.
- 有一些开源框架可以在Windows上使用 - 例如,OS X的AppKit和Foundation框架(大部分)作为GNUstep项目的一部分提供 - 但这些框架在Windows上没有被广泛使用或支持,有时缺乏OS X对应的功能。
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.
也就是说,GCC在Windows上可用,并且由于GCC是Objective-C编译器,如果您有合适的库(或者没有使用任何第三方库),您可以在Windows上编译Objective-C代码。但是,如果没有支持框架,Objective-C就不是非常有用,而且在Windows上很少或不存在。
#2
19
Same can be said why isn't there Visual Studio 2008 for OSX.
同样可以说为什么没有Visual Studio 2008 for OSX。
#3
7
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.
Xcode是一个大型应用程序,写入Windows上不存在的API集。移植它将是一项巨大的工作,维护它将是一项巨大的工作,并且Windows平台上已经有流行的IDE。
#4
0
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.
我想移植XCode会非常接近(如果不是不可能的话),但即使你能够在Windows下运行一个正在运行的XCode版本,我想它也不会做你真正想做的事情。我假设您需要一个完整的iPhone SDK环境,它以非常严格的方式依赖于XCode和Interface Builder。这需要Cocoa Frameworks的端口(以及其他东西)现在是真的,不可能移植。
Truth is, as much as you will surely need Windows for Windows Phone development, you need a Macintosh computer for iPhone development.
事实上,就像你肯定需要用于Windows Phone开发的Windows一样,你需要一台用于iPhone开发的Macintosh电脑。
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.
另一方面,Xcode作为IDE,并不是世界上最好的,所以即使你设法获得Xcode并使其使用.NET(例如),我更倾向于使用visual studio。
#5
0
Actually you can install Mac OS X on any Intel CPU based machine. It is legal as you own the orginal install DVD for the OS X system. After aquiring a copy of Virtualbox or VMWare (either is great, personally I prefer Virtualbox because the display settings are more customizable). Virtualbox allows setup on initial setup while VMWare requires an extra step to ensure compatibility. You can then find the steps online to setup a virtual copy of MacOS X.
实际上,您可以在任何基于Intel CPU的计算机上安装Mac OS X.您拥有OS X系统的原始安装DVD是合法的。在获取Virtualbox或VMWare的副本之后(要么很棒,我个人更喜欢Virtualbox,因为显示设置更加可定制)。 Virtualbox允许在初始设置时进行设置,而VMWare需要额外的步骤以确保兼容性。然后,您可以在线找到设置MacOS X虚拟副本的步骤。
After going through the steps to install the OS in the Virtual Machine, you can then go through the process to find XCode in the Apple App Store. From there, have at it. Start programming in XCode and have a good time. Since XCode has its own device emulator you have a built in platform for iOS testing. There may be times where it is a bit buggy but that is to be expected with ANY emulator for ANY system you run.
完成在虚拟机中安装操作系统的步骤后,您可以通过该过程在Apple App Store中查找XCode。从那里开始吧。在XCode中开始编程并享受愉快的时光。由于XCode拥有自己的设备模拟器,因此您可以使用内置的iOS测试平台。可能有时会出现一些问题,但对于您运行的任何系统,可以使用任何模拟器进行预期。
After you get everything installed and going, sit back and enjoy the programming ride. The only catch is if you want to post anything on the Apple App store and then you will have to deal with getting an Apple Dev License. Objective C can be a bit difficult at times but, at the same time, it can be very satisfying when you solve those programming problems (as with any programming language right ;-) )
在安装完所有物品之后,请坐下来享受编程之旅。唯一的问题是,如果您想在Apple App商店发布任何内容,那么您将不得不处理获得Apple Dev许可证的问题。 Objective C有时可能有点困难,但同时,当你解决那些编程问题时,它会非常令人满意(就像任何编程语言一样;-))
Enjoy
请享用
PS... this VM install keeps up with all updates from the Apple App Store so keeping the system updated won't be a problem.
PS ...此VM安装可以跟上Apple App Store的所有更新,因此保持系统更新不会成为问题。
PSS... I will not condone anyone for where their source of software is but do keep in mind, setting up a VM with VMWare or Virtualbox and an install DVD is only legal IF you personally OWN the install DVD you created the install image from yourself!
PSS ...我不会宽恕任何人,因为他们的软件来源在哪里,但请记住,使用VMWare或Virtualbox设置虚拟机和安装DVD只是合法的如果您个人拥有您创建安装映像的安装DVD你自己!
#6
-1
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.
您无法在PC上安装Mac OS X的原因相同:Apple选择仅将其提供给拥有自己品牌计算机的用户。