简体   繁体   English

Ionic iOS应用开发

[英]Ionic ios app development

I am new to mobile development, working on my first app for both iOS and Android. 我是移动开发的新手,致力于我的第一个iOS和Android应用程序。 I was under the impression that I can develop it through Ionic once (on my Linux system) and deploy it for both, but recently found out I need to develop on a Mac for iOS? 我的印象是,可以一次(在Linux系统上)通过Ionic进行开发并将其部署到两者中,但是最近发现我需要在Mac上开发iOS版吗?

Like this guy said to someone equally unimpressed: https://stackoverflow.com/a/38117802/8494414 Also stated here: https://stackoverflow.com/a/40779188/8494414 像这个家伙一样对一个印象深刻的人说: https ://stackoverflow.com/a/38117802/8494414在这里也说过: https : //stackoverflow.com/a/40779188/8494414

My question is, at which stage do I need a Mac? 我的问题是,在哪个阶段需要Mac? Can I do all the development on my system and then just deploy with a Mac? 我可以在系统上进行所有开发,然后仅通过Mac进行部署吗? Did I need to do something special from the get-go to support iOS? 我是否需要从一开始就做一些特别的事情来支持iOS? I am already rather deep in the process, but should I be considering a different framework? 我已经在这个过程中很深入,但是我应该考虑一个不同的框架吗?

I do find it strange that this knowledge doesn't seem very explicitly available. 我确实感到奇怪的是,这种知识似乎不是很明确地可用。

Thank you for any help! 感谢您的任何帮助!

If you want to do a build for the iOS platform you will always need a macOS based operating system with xcode installed at some point. 如果要为iOS平台进行构建,则始终需要在某些时候安装xcode的基于macOS的操作系统。 You can do all the coding on your linux machine as the hybrid part will be the same for all platforms. 您可以在linux机器上进行所有编码,因为混合部分对于所有平台都是相同的。 But if you want to test or deploy the iOS version of your app you will need either a mac or you will have to use some third party service where you can upload your sourcecode and you get a ready for install .ipa back. 但是,如果您要测试或部署应用程序的iOS版本,则需要Mac,或者必须使用一些第三方服务,您可以在其中上传源代码,并准备好安装.ipa。 Ionic itself offers a service like that: see Ionic Package Service Ionic本身提供了这样的服务:请参阅Ionic Package Service

As joshmorony said on his blog: 正如乔什莫罗尼在他的博客上所说:

In order to compile an iOS application using Cordova, you need the iOS SDK, which is only possible if you have a Mac and XCode. 为了使用Cordova编译iOS应用程序,您需要iOS SDK,只有在具有Mac和XCode的情况下才可以使用。 This is not an issue for Android because the Android SDK can be installed on both Windows and Mac. 对于Android而言,这不是问题,因为可以在Windows和Mac上都安装Android SDK。 If you are not using a Mac, you simply can not create iOS builds. 如果您未使用Mac,则无法创建iOS版本。

you can also use some virtual machines but they can be illegal and I don't recommend them 您也可以使用某些虚拟机,但是它们可能是非法的,我不建议您使用

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

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