简体   繁体   English

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

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

I wish to develop an Ionic App for Android, iOS and Windows Store. 我希望为Android,iOS和Windows Store开发一个Ionic App I am currently using my HP Windows 10 laptop alongside Cloud9 IDE . 我目前正在使用我的HP Windows 10笔记本电脑和Cloud9 IDE

Do I need to purchase a Mac (old Mac mini, old Imac) to be able to use Xcode for creating/compiling the iOS app? 我是否需要购买Mac(旧Mac mini,旧的Imac)才能使用Xcode创建/编译iOS应用程序?

The are some points you need to know. 这是你需要知道的一些要点。

You need a Mac to create a Cordova vesion of you App? 你需要一台Mac来创建你应用的Cordova vesion吗?

Answer: Theoretically no, because Phonegap (Adobes Cordova) has remote Builders that you can use to create a package of you App for IOS. 答:理论上没有,因为Phonegap(Adobes Cordova)有远程构建器,您可以使用它来为IOS创建一个App程序包。 But, this remote service is paid. 但是,这项远程服务已经付清。

So I should use Adobe Phonegap remote builder? 那么我应该使用Adobe 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). 答:不可以。如前所述,您可以使用XCode仿真器测试您的应用程序(包括Iphone,Ipads等)。 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). 如果您想确保应用程序的所有功能都正常工作(假设仿真器永远不会是真正的设备),请只购买iPhone。

Good alternative: You could create a Mac Virtual Machine and try to develop through that (if your Windows Machine is really good). 好的选择:你可以创建一个Mac虚拟机并尝试通过它进行开发(如果你的Windows机器非常好)。 The problem: It will be very difficult to test your App with a real IOS device using the virtual machine. 问题:使用虚拟机使用真实的IOS设备测试您的应用程序将非常困难。 We will basically work with XCode emulators. 我们基本上可以使用XCode模拟器。

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

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. @Del - 测试应用程序不需要物理设备。 You can use the device simulator in xCode. 您可以在xCode中使用设备模拟器。

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. 不.XCode仅在OS X上运行,但如果您选择正确的组件,则可以在Apple未销售的PC上安装OS X,这通常要便宜得多。 (This is known informally as a Hackintosh.) (这是非正式地称为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.com and 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找到有关此操作的信息,等网站。

VMWare与Mac Image运行良好。

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

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