我是否需要 Xcode(和 Mac)来为 iOS 开发 Ionic 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35538585/
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-09-15 08:34:05  来源:igfitidea点击:

Do I need Xcode (and a Mac) to develop an Ionic app for iOS?

iosxcodemacoscordovaionic-framework

提问by tripwire1000

I wish to develop an Ionic Appfor Android, iOS and Windows Store. I am currently using my HP Windows 10 laptop alongside Cloud9IDE.

我希望为 Android、iOS 和 Windows 商店开发一个Ionic 应用程序。我目前正在使用我的 HP Windows 10 笔记本电脑和Cloud9 IDE

Do I need to purchase a Mac (old Mac mini, old Imac) to be able to use Xcodefor creating/compiling the iOSapp?

我是否需要购买 Mac(旧 Mac mini、旧 Imac)才能使用Xcode创建/编译iOS应用程序?

回答by Cordovaing

The are some points you need to know.

这是您需要了解的一些要点。

You need a Mac to create a Cordova vesion of you App?

您需要一台 Mac 来创建您的应用程序的 Cordova 版本吗?

Answer:Theoretically no, because Phonegap (Adobes Cordova) has remote Builders that you can use to create a package of you App for IOS. But, this remote service is paid.

答:理论上不会,因为 Phonegap (Adobes Cordova) 具有远程构建器,您可以使用它来创建适用于 IOS 的应用程序包。但是,这种远程服务是有偿的。

So I should use Adobe Phonegap remote builder?

所以我应该使用 Adob​​e Phonegap 远程构建器吗?

Answer:I would not use. A remote automatically builder will never be as good as you control the actions of what is being created or maipulated on your App.

答:我不会用。远程自动构建器永远不会像您控制在您的应用程序上创建或操纵的操作那样好。

So it's better to buy a mac?

所以买mac比较好?

Answer:Yes.

回答:是的。

I will need an Iphone or Ipad device too?

我还需要一部 Iphone 或 Ipad 设备吗?

Answer:No. As mentioned before, you could test your App using XCode emulator (wich include Iphones, Ipads and more). Only buy an IPhone if you want to be sure that all features of your App is working (given that an Emulator will never be a real device).

答:不可以。如前所述,您可以使用 XCode 模拟器(包括 Iphones、Ipads 等)测试您的应用程序。如果您想确保您的应用程序的所有功能都正常运行,请仅购买 iPhone(鉴于模拟器永远不会成为真正的设备)。

Good alternative:You could create a Mac Virtual Machine and try to develop through that (if your Windows Machine is really good). The problem:It will be very difficult to test your App with a real IOS device using the virtual machine. We will basically work with XCode emulators.

不错的选择:您可以创建一个 Mac 虚拟机并尝试通过它进行开发(如果您的 Windows 机器非常好)。问题:使用虚拟机在真实的 IOS 设备上测试您的应用程序将非常困难。我们将基本上使用 XCode 模拟器。

回答by Ben

No. XCode only runs on OS X, but it is possible to install OS X on a PC not sold by Apple if you select the right components, which is typically far less expensive. (This is known informally as a Hackintosh.)

不可以。XCode 只能在 OS X 上运行,但如果您选择正确的组件,则可以在非 Apple 销售的 PC 上安装 OS X,这通常要便宜得多。(这被非正式地称为 Hackintosh。)

This isn't officially supported and is not always straightforward; it also violates the OS X license agreement, so its legality may vary between jurisdictions.

这没有得到官方支持,也并不总是很简单;它也违反了 OS X 许可协议,因此其合法性可能因司法管辖区而异。

You can find information on doing this at http://www.hackintosh.comand http://lifehacker.com/the-always-up-to-date-guide-to-building-a-hackintosh-o-5841604, among other sites.

您可以在http://www.hackintosh.comhttp://lifehacker.com/the-always-up-to-date-guide-to-building-a-hackintosh-o-5841604上找到有关执行此操作的信息,在其他网站中。

回答by ChrisM

VMWare with Mac Image works well.

带有 Mac 映像的 VMWare 运行良好。

回答by Del

Yes, also you will need an apple developer account, and probable and iPhone / iPad for testing

是的,您还需要一个苹果开发者帐户,可能还有 iPhone / iPad 进行测试

回答by Tsvetilin Boynovski

No!You can develop apps using Ionic Framework for Cordova/Phonegap, altough in order to publish the app on the AppStore you will need an Apple developer account.

不!您可以使用 Ionic Framework for Cordova/Phonegap 开发应用程序,但为了在 AppStore 上发布应用程序,您需要一个 Apple 开发者帐户。

@Del - No physical device is needed for testing an app. You can use the device simulator in xCode.

@Del - 测试应用程序不需要物理设备。您可以在 xCode 中使用设备模拟器。