Invoking an iOS build from a Windows PC - ios

Can we build(Compile+Link+Build) an iOS project from a windows PC?. I want to remotely compile and build an iOS application from a windows PC through command. Is that possible ?
I know that it is possible to build an iOS application via commandline in ios using xCodeBuild. Can we do that remotely from a windows PC ?

Just use SSH to log into the Mac machine and run xcodebuild? That’s the essential core trick, and depending on your needs you can add more bells and whistles. For example the Jenkins continuous integration server can manage a “slave” Mac machine to build and test code, showing you the results.

Related

Build, deploy and run a Flutter app for iOS from Android Studio on a Linux computer using a remote Mac with an Xcode server or an SSH server?

I use a Debian Linux computer as my main development computer for Flutter apps for Android with Android Studio.
When I want to test an app on iOS, I need to pull the Flutter app source code from my source control system (GitLab) on my Apple macOS computer, build, deploy and run from there using Android Studio.
What I would like to do, is avoid the source control pull step in the process and initiate the iOS build, deploy and run on the Apple computer from the Android Studio on the Linux computer.
I consider the build, deploy and execute steps in Android studio as commands. I believe that those commands can be configured maybe through Gradle configuration files. If so, it should be possible to configure Android Studio and Gradle so that my Android Studio on Linux makes use of a remote Apple computer for the build, deploy and run either through an Xcode server or through an SSH server installed on the Mac.
At the moment, when I try a flutter build ios on my Linux machine, I get this expected error message:
Building for iOS is only supported on the Mac.
Does anyone have a solution to make this remote?
I know that Appollo does this for building apps. It's a python CLI tool that lets you connect to remote Macs. The CLI tool is open source so maybe you can find how they connect to the MacOS machines in their source code : https://github.com/Appollo-CLI/Appollo

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.

Can ios simulator can be run in Windows

I m working on appium scripting for mobile application automation testing.
I m able to simulate android device using the emulator and run the script in the emulator.
Now my next task is to run in ios. Please let me know it is possible to do it in ios emulator in Windows machine. If so some headsup on it.
You can not. There are platforms like React Native, Flutter, Xamarin, etc which enables you develop iOS applications; but when it comes to debugging and deployment, you have to have a macOS, which in turn requires a Macintosh machine.
Yess you can use Remote simulator to windows by enabling it under
Tools >> Option >> Xamarin >> IOS setting >> Remote simulator to windows.
But you still need active mac agent connection to build your app
You can use Appium studio free community edition for testing iOS physical device from windows machine.
note:- I have tested appium studio personally and think it will be useful for others.

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.

Remotely build iOS app

I'm building an iPhone app on windows, but have a macbook air that I keep around so that I can build my .ipk when I need to.
My question is: how (if it's possible) do I make my macbook build remotely (either by calling a command through ssh or similar), all the files are being synced already by dropbox, so i'm not concerned about how to get the files back and forth, just how to make my mac build remotely.
Thanks everyone!
You can build your project using xcodebuild. Log through ssh, go to project catalog and just run xcodebuild. You may add some parameters if required.

Resources