ios 您是否需要 Mac OS X 来开发 iPhone 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9570486/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 17:09:55  来源:igfitidea点击:

Do you need Mac OS X to develop iPhone apps?

iphoneios

提问by datauser

I was reading some sort of article stating you need Mac OS X to develop iPhone apps. is there really such as restrictions?

我正在阅读某种文章,说明您需要 Mac OS X 来开发 iPhone 应用程序。真的有这样的限制吗?

Can't you just download the SDK (and the iOS developer program) IDE to Windows?

不能直接将SDK(和iOS 开发者程序)IDE 下载到Windows 吗?

回答by Novarg

Yes, you do need Mac OS X for that. Xcode (SDK) will only work on Mac OS X. However, if the legal part for you is not really important you can install Mac OS X on your normal PC. Just google "Hackintosh".

是的,您确实需要 Mac OS X。Xcode (SDK) 只能在 Mac OS X 上运行。但是,如果法律部分对您来说不是很重要,您可以在普通 PC 上安装 Mac OS X。只需谷歌“Hackintosh”。

回答by Michael

You don't need an actual Mac, just Mac OSX. If you don't feel like buying a mac than you can get a hold of the image of Mac OSX and install it onto your PC using Virtual Machine software. I use VMWare to run MacOSX from my Windows 7 x64 machine. VM's are a great way to go, the driers can take a bit to setup, but once everything is working it's perfect. VM's even support ethernet so from within the VM you can browse the web, download mac apps. Install things like XCode or GameSalad. I suggest researching how to use Virtual Machines.

您不需要真正的 Mac,只需要 Mac OSX。如果您不想购买 mac,那么您可以获取 Mac OSX 的映像并使用虚拟机软件将其安装到您的 PC 上。我使用 VMWare 从我的 Windows 7 x64 机器上运行 MacOSX。VM 是一个很好的方法,干燥器可能需要一些时间来设置,但是一旦一切正常,它就完美了。VM 甚至支持以太网,因此您可以在 VM 内浏览网页、下载 mac 应用程序。安装 XCode 或 GameSalad 之类的东西。我建议研究如何使用虚拟机。

回答by abelenky

One near-solution is to run OS X in a Virtual Machine on a Windows platform. You're then developing on XCode on OS X, in a VM on Windows. This way, you don't have to buy a Mac, or dedicate the hardware to a "Hackintosh".

一种近似的解决方案是在 Windows 平台上的虚拟机中运行 OS X。然后,您将在 OS X 上的 XCode 上,在 Windows 上的 VM 中进行开发。这样,您就不必购买 Mac,也不必将硬件专门用于“Hackintosh”。

Of course, this may not be legalby the license terms; I'm only speaking about the technical possibility.

当然,根据许可条款,这可能不 合法;我只是在谈论技术可能性。

回答by Mark

You absolutely need Intel Macintosh hardware to develop iOS apps. The iOS SDK requires Xcode and Xcode only runs on Macintosh machines. I think that any Intel Mac will work, but with how fast things are changing a newer machine will get you longer time before you are forced to upgrade the machine.

您绝对需要 Intel Macintosh 硬件来开发 iOS 应用程序。iOS SDK 需要 Xcode,而 Xcode 只能在 Macintosh 机器上运行。我认为任何英特尔 Mac 都可以使用,但随着事物变化的速度如此之快,一台新机器会让您在被迫升级机器之前有更长的时间。

回答by Mark Granoff

Nope, you need an Intel-based Mac to develop apps for iOS. There is no iOS SDK for Windows.

不,您需要基于 Intel 的 Mac 才能为 iOS 开发应用程序。没有适用于 Windows 的 iOS SDK。

That being said, there might be a way to use something like PhoneGap to develop your app "elsewhere" and then create a suitable package for iOS as well as other mobile platform. I am not familiar enough with PhoneGap and similar tools to know about this angle with any more certainty though.

话虽如此,可能有一种方法可以使用 PhoneGap 之类的东西在“其他地方”开发您的应用程序,然后为 iOS 以及其他移动平台创建合适的包。不过,我对 PhoneGap 和类似工具还不够熟悉,无法更确定地了解这个角度。

回答by gtr32x

You can't, there is no iOS SDK for Windows, it only has a Mac version. However, there are various emulators for Mac out there that you can try to install onto Windows. I've tried this before and it did work, however the performance was really poor. If you really wanted to do iOS development. I would strongly suggest you to actually purchase a Mac.

你不能,没有适用于 Windows 的 iOS SDK,它只有 Mac 版本。但是,您可以尝试将各种适用于 Mac 的模拟器安装到 Windows 上。我以前试过这个,它确实有效,但是性能真的很差。如果你真的想做iOS开发。我强烈建议您实际购买 Mac。

回答by Snezhana Sapunkova

One year later... I am not familiar with the prerequisites for developing native iOS apps, but wanted to add the possibility of creating a hybrid mobile application. Usually even then one needs the native tools and SDKs for building the wrapper application. But PhoneGap provide a cloud-based build service, which seems to do the job:

一年后...我不熟悉开发原生 iOS 应用程序的先决条件,但想添加创建混合移动应用程序的可能性。通常即使这样,人们也需要本地工具和 SDK 来构建包装器应用程序。但是 PhoneGap 提供了一个基于云的构建服务,它似乎可以完成这项工作:

"What about developer accounts and SDKs? Do I need to set those up before starting with PhoneGap Build?

No! But you might want to install some of the SDK emulators if you don't own a particular device that you want to test a build for."

“开发者帐户和 SDK 怎么样?我需要在开始使用 PhoneGap Build 之前设置它们吗?

不!但是,如果您没有要测试构建的特定设备,则可能需要安装一些 SDK 模拟器。”

Source: PhoneGap Build service

来源:PhoneGap 构建服务

I have not tested the service myself. Just wanted to give an additional path to consider.

我没有亲自测试过该服务。只是想提供一个额外的路径来考虑。

回答by Snezhana Sapunkova

To be clear for iPhone apps development required Mac Computers. Xcode and iOS SDK to lead through the app development.Objective-C is the programming language which is most required for iOS app development to build apps. And to be frank, there is a difference between iOS and OS X. iOS and OS X share more framework. So porting app works from OS X to iOS is possible with a little work. If you are a cocoa developer you would be adapt to these frameworks easier.

要明确 iPhone 应用程序开发需要 Mac 计算机。Xcode 和 iOS SDK 引领应用程序开发。Objective-C 是 iOS 应用程序开发构建应用程序最需要的编程语言。坦率地说,iOS 和 OS X 之间存在差异。iOS 和 OS X 共享更多框架。因此,只需稍加工作就可以将应用程序从 OS X 移植到 iOS。如果您是可可开发人员,您将更容易适应这些框架。

Check for more information: developer.apple.com/library/ios/documentation/Miscellaneous/Conceptual/iPhoneOSTechOverview/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007898

查看更多信息:developer.apple.com/library/ios/documentation/Miscellaneous/Conceptual/iPhoneOSTechOverview/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007898

回答by Bruno Barros

Yes, you′re gonna need a MacBook or alike to develop for iOS. In my opinion, one of the biggest problems of developing apps for iOS is that you regularly have to buy a new MacBook (or another Mac based technology computer), since over time the most current version available of xCode for your already recently outdated OS X becomes incompatible with the newest iOS.

是的,您将需要一台 MacBook 或类似设备来为 iOS 进行开发。在我看来,为 iOS 开发应用程序的最大问题之一是您经常需要购买新的 MacBook(或另一台基于 Mac 的技术计算机),因为随着时间的推移,最新版本的 xCode 将用于您最近已经过时的 OS X变得与最新的 iOS 不兼容。

回答by Karthik SWOT

You can just install MacOS X on windows platform with the help of VMWare which you can use both of operating systems simultaneously side by side.

您可以借助 VMWare 在 Windows 平台上安装 MacOS X,您可以同时并排使用两个操作系统。

If you try develop iOS app with cordova like tools, you can simply build with the required SDK and compile it as iOS app then test it on your iPhone or any virtual emulators.

如果您尝试使用类似cordova 的工具开发iOS 应用程序,您可以简单地使用所需的SDK 构建并将其编译为iOS 应用程序,然后在您的iPhone 或任何虚拟模拟器上进行测试。