简体   繁体   English

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

[英]Do you need Mac OS X to develop iPhone apps?

I was reading some sort of article stating you need Mac OS X to develop iPhone apps.我正在阅读某种文章,说明您需要 Mac OS X 来开发 iPhone 应用程序。 is there really such as restrictions?真的有这样的限制吗?

Can't you just download the SDK (and the iOS developer program) IDE to Windows?不能直接将SDK(和iOS 开发者程序)IDE 下载到Windows 吗?

Yes, you do need Mac OS X for that.是的,您确实需要 Mac OS X。 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. Xcode (SDK) 仅适用于 Mac OS X。但是,如果法律部分对您来说不是很重要,您可以在普通 PC 上安装 Mac OS X。 Just google "Hackintosh".只需谷歌“Hackintosh”。

You don't need an actual Mac, just Mac OSX.您不需要真正的 Mac,只需要 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.如果您不想购买 mac,那么您可以获取 Mac OSX 的映像并使用虚拟机软件将其安装到您的 PC 上。 I use VMWare to run MacOSX from my Windows 7 x64 machine.我使用 VMWare 从我的 Windows 7 x64 机器上运行 MacOSX。 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 是一个很好的方法,干燥器可能需要一些时间来设置,但是一旦一切正常,它就完美了。 VM's even support ethernet so from within the VM you can browse the web, download mac apps. VM 甚至支持以太网,因此您可以在 VM 内浏览网页、下载 mac 应用程序。 Install things like XCode or GameSalad.安装 XCode 或 GameSalad 之类的东西。 I suggest researching how to use Virtual Machines.我建议研究如何使用虚拟机。

One near-solution is to run OS X in a Virtual Machine on a Windows platform.一种近似的解决方案是在 Windows 平台上的虚拟机中运行 OS X。 You're then developing on XCode on OS X, in a VM on Windows.然后,您将在 OS X 上的 XCode 上,在 Windows 上的 VM 中进行开发。 This way, you don't have to buy a Mac, or dedicate the hardware to a "Hackintosh".这样,您就不必购买 Mac,也不必将硬件专门用于“Hackintosh”。

Of course, this may not be legal by the license terms;当然,根据许可条款,这可能不合法 I'm only speaking about the technical possibility.我只是在谈论技术可能性。

You absolutely need Intel Macintosh hardware to develop iOS apps.您绝对需要 Intel Macintosh 硬件来开发 iOS 应用程序。 The iOS SDK requires Xcode and Xcode only runs on Macintosh machines. iOS SDK 需要 Xcode,而 Xcode 只能在 Macintosh 机器上运行。 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.我认为任何英特尔 Mac 都可以工作,但是随着事物变化的速度如此之快,一台新机器会让您在被迫升级机器之前有更长的时间。

Nope, you need an Intel-based Mac to develop apps for iOS.不,您需要基于 Intel 的 Mac 才能为 iOS 开发应用程序。 There is no iOS SDK for Windows.没有适用于 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.话虽如此,可能有一种方法可以使用 PhoneGap 之类的东西在“其他地方”开发您的应用程序,然后为 iOS 以及其他移动平台创建合适的包。 I am not familiar enough with PhoneGap and similar tools to know about this angle with any more certainty though.不过,我对 PhoneGap 和类似工具还不够熟悉,无法更确定地了解这个角度。

You can't, there is no iOS SDK for Windows, it only has a Mac version.你不能,没有适用于 Windows 的 iOS SDK,它只有 Mac 版本。 However, there are various emulators for Mac out there that you can try to install onto Windows.但是,您可以尝试将各种适用于 Mac 的模拟器安装到 Windows 上。 I've tried this before and it did work, however the performance was really poor.我以前试过这个,它确实有效,但是性能真的很差。 If you really wanted to do iOS development.如果你真的想做iOS开发。 I would strongly suggest you to actually purchase a Mac.我强烈建议您实际购买 Mac。

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.一年后......我不熟悉开发原生 iOS 应用程序的先决条件,但想添加创建混合移动应用程序的可能性。 Usually even then one needs the native tools and SDKs for building the wrapper application.通常即使这样,人们也需要本地工具和 SDK 来构建包装器应用程序。 But PhoneGap provide a cloud-based build service, which seems to do the job:但是 PhoneGap 提供了一个基于云的构建服务,它似乎可以完成这项工作:

"What about developer accounts and SDKs? Do I need to set those up before starting with PhoneGap Build? “开发者帐户和 SDK 怎么样?我需要在开始使用 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 模拟器。”

Source: PhoneGap Build service来源: PhoneGap 构建服务

I have not tested the service myself.我没有亲自测试过该服务。 Just wanted to give an additional path to consider.只是想提供一个额外的路径来考虑。

To be clear for iPhone apps development required Mac Computers.要明确 iPhone 应用程序开发需要 Mac 计算机。 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. Xcode 和 iOS SDK 引领应用程序开发。Objective-C 是 iOS 应用程序开发构建应用程序最需要的编程语言。 And to be frank, there is a difference between iOS and OS X. iOS and OS X share more framework.坦率地说,iOS 和 OS X 之间存在差异。iOS 和 OS X 共享更多框架。 So porting app works from OS X to iOS is possible with a little work.因此,只需稍加工作就可以将应用程序从 OS X 移植到 iOS。 If you are a cocoa developer you would be adapt to these frameworks easier.如果您是可可开发人员,您将更容易适应这些框架。

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

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 或任何虚拟模拟器上进行测试。

So this is an old question but also the first to appear for me in Google and I finally found a legal way.所以这是一个老问题,但也是第一个出现在谷歌的问题,我终于找到了一个合法的方法。 In 2020 you can go with MacInCloud, costs one dollar an hour for a basic plan. 2020 年,您可以使用 MacInCloud,基本计划每小时收费 1 美元。 You can code everything elsewhere and then just use the cloud service to deploy the final steps in Xcode.您可以在其他地方编写所有代码,然后只需使用云服务在 Xcode 中部署最后的步骤。 Don't know about installing on your own ipad for testing, haven't gotten there yet.不知道如何在自己的 ipad 上安装进行测试,还没有到达那里。

Yes, you´re gonna need a MacBook or alike to develop for iOS.是的,您需要一台 MacBook 或类似设备来为 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.在我看来,为 iOS 开发应用程序的最大问题之一是您经常需要购买新的 MacBook(或另一台基于 Mac 的技术计算机),因为随着时间的推移,最新版本的 xCode 将用于您最近已经过时的 OS X变得与最新的 iOS 不兼容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM