Build cordova apps via ssh on a remote Mac - ios

I've been building Android Phonegap apps locally on my Windows PC and using Phonegap Build to build IOS apps.
The design guys have a Mac that we're already using to publish the app in iTunes.
But even if Phonegap build is a great tool, there are many drawbacks : build time can sometimes be quite long, not all plugins are available, plugins submission seems sometimes quite long and not always successfull, building debugging a home-made plugin using Phonegap build seems just impossible.
For all those reasons I feel the need to build locally also IOS projects and maybe also develop native plugins.
So my idea would be to use ssh to connect to the Designer's Mac and use it to build.
Do other people process in that way? Would it work? Are there things I should be carefull with when installing the CLI, sdk and other tools?
For example I think it would be a good idea to install npm locally in my user I'll use for SSH.
Any ideas?

it is possible
First you need to instal phonegap on Designer's Mac, and enable ssh
Then in your system open terminal/cmd type
ssh usernameOfDesignerMac#ipaddress
then enter yes,
then enter password of that user. thats all now you can access Designer's mac,
cd cordovaProjectLocation
sudo cordova build ios/android

Related

Using Flutter from Linux without XCode

I use Linux (Ubuntu 20.04) as my development environment. I was excited about the idea of reusing the same code for Android, iOS and event Web.
But I'm blocked because I'm using Linux and in all tutorials and examples are talking about the necessity of using XCode to things like setting the FireStore configuration.
I'm not an iOS developer, so I don't want to buy a more expensive and less powerful machine to be able to develop and release iOS applications, and looks like still, Flutter is not the solution.
So my question is, how can I develop iOS apps using Flutter without a Mac?
You can also use a CLI tool named Appollo : https://github.com/Appollo-CLI/Appollo
It's a simple python utility that let's you :
Configure XCode
Create an IPA
Test your app in the iOS simulator
Build and publish your app on the App Store
You can install it by running pip install appollo in your terminal. For a full tutorial check their documentation : https://appollo.readthedocs.io/en/master/tutorial/index.html
You can also view a few demo videos on the Appollo YT channel : https://www.youtube.com/channel/UCBNRrJd4UP0QQRoYF4JOEmA
You can do one of the following:
Use a Mac OS virtual machine.
Use a service to build remotely, like CodeMagic for example.
Get a friend or co-worker to build the app on their Apple machine.
Also check out this:
Is it possible to develop iOS apps with Flutter on a Linux virtual machine?

Is it possible to setup Continuous Integration & Continuous Deployment for iOS app development?

I am looking for a way to setup Centralized Continuous Integration and Continuous Deployment for iOS app development. Just like how we do it for Maven or Gradle builds.
I found couple of articles which explains how to achieve this, but for all them are using Xcode to build the iOS application. The key here is Xcode will run only on MacOS.
I found Jenkins Xcode plugin, but it clearly tells,
Obviously, the build machine has to be an OSX machine with XCode
developer tools installed.
Even if we are making one of the developer's OSX machine as Jenkins agent, we can't guarantee that developer's OSX machine will be always connected to Jenkins master. What if somebody else want to build the app and the OSX machine running Jenkins agent is not available?
I found fastlane, but that also seems to automate some of the manual steps like taking screenshots, code signing, releasing the app. It has to be run on only the developers machine if I am not wrong.
What is the generic approach people use to achieve this?
For CI/CD you can use remote build server like AppCenter from Microsoft (https://appcenter.ms/) or other.
And, obviously, without mac machine to build app you can't build your own system CI/CD. Unfortunately, developer can't build app without Apple Machine.
It is main problem for iOS development.
In this case, android is better.

Redirect Flutter SDK path when building iOS build?

I wrote a Flutter app using IntelliJ on my Linux machine. I need to build the ipa file for iOS devices, and I do not have a Mac.
I plan on using a "Mac in the cloud" server to prepare the release build for the App Store. I have been mapping out all of the steps that I need to do to do the whole process, and I got to wondering: if I am opening my project folders on a server somewhere, do I have to configure the path to the Flutter SDK that I will have to download on to server machine?
I have looked at the Flutter.io documentation, but did not find an answer to this question.
Goal: to generate a release build for iOS on server machine from the project folders that I used on my Linux machine to make release build for Android.
Well, to answer my own question, IntelliJ seems to find the correct flutter path on its own somehow. It give me an error message after build command, but then continues using correct flutter path. I am pretty sure that I never told the program where to find flutter.

How to build ionic 2 ios app on windows 10?

I am new to ionic 2 and i want to build my app to ios version. What requirements need to install on my windows 10 PC? Thanks. I hope you can help me. :)
The only way I can think of is by using Ionic Cloud Services:
Ionic Packages makes it easy to build a native binary of your app in
the cloud. Perfect for developers using Windows that want to build iOS
apps.
This lets you:
Send your packaged app to others
Build your app for platforms not supported by your computer (e.g. iOS builds on Windows)
Build .ipa and .apk files that you can submit to app stores
You can check the prerequisites here and the steps required to build, here.
EDIT:
You can also take a look at this amazing post from Josh Morony.
You can't build it to iOS in Windows. Neither in Linux.
You will need an Mac OS.
Either one running on a real Apple device (iMac, Macbook, Mac Mini), or in an virtual box or you can use a cloud service.

How to build ios application using Phonegap framework on windows OS.

I have allready build an android application using Phonegap framework, I need to develop the application for ios also using windows OS.I know that for ios we need XCode that runs only on mac machine,but is there any way to do it on windows ( as I can't afford Mac machine) ?
I searched for various options,few of them are:
1.Install mac os using VM ware.
2.Use MacinCloud Service.
I don't know what are the advantages and disadvantages of each of them, please suggest what to do?
Use PhoneGap Build. Just upload the html/js/css/config with specified plugin as zip and build it online. Unfortunatelly you will not be able to use custom plugins, only specified on the PhoneGap Build site.

Resources