iOS using virtual-box or other VM

harel.mazor's Avatar

harel.mazor

15 Jan, 2019 10:02 PM

Hi,

I was wondering if anyone had tried to run a VM that runs iOS using appveyor?
I'm hoping to compile my iOS application that uses cordova cli and basically all it needs is a VM with iOS that has xcode.
Any suggestions how to do that, or if this is remotely possible?

Thanks,
Harel M.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 17 Jan, 2019 01:12 AM

    Ilya Finkelshteyn's Avatar

    Do you have an experience doing this on your own computer? If yes, we can try to investigate how to automate it on AppVeyor.

  2. 2 Posted by harel.mazor on 17 Jan, 2019 06:41 AM

    harel.mazor's Avatar

    I'm currently learning the subject.
    Mainly following this tutorial:
    http://www.wikigain.com/install-macos-sierra-10-12-virtualbox/
    I managed to download the file from google drive, install Virtual-Box 6. add the vmdk as a hard disk, and run the code that exists within the rar file to configure the image (I used the 5.x code).
    When I start it on my windows machine, it boots up and I was able to use it to download xcode, my code and compile it.
    But it is very far from something I can automate - for example I needed to log-in to my apple account and configure a password for the OS inside the VM...
    I would love to be able to automate it, I just don't have a clue where to start...
    Any help or insight would be appreciated.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 17 Jan, 2019 09:37 AM

    Ilya Finkelshteyn's Avatar

    As a shortcut we can enable private build cloud for you so you can have your own image with everything you need pre-installed. You can set up a build matrix with one job to run on AppVeyor as usual and another on your own cloud/image. If you do not want to spend on Hyper-V machine or some cloud VMs, you can even connect your own computer with "running builds as a local process approach" (but will not have clean VM for each build). More details here. Let us know if you are interested. It does not require any paid plan.

  4. 4 Posted by harel.mazor on 17 Jan, 2019 12:10 PM

    harel.mazor's Avatar

    Thanks for the quick response!
    While this might work for me, I was hoping this can serve other users too.
    What you are suggesting is extracting all the proprietary stuff into a dedicated machine to do the work, I was hoping to be able to run all the steps I made on my PC from command line to run in the appveyor environment. I think it's possible but very complicated...

  5. Support Staff 5 Posted by Ilya Finkelshte... on 17 Jan, 2019 09:57 PM

    Ilya Finkelshteyn's Avatar

    If you log-in to your Apple account and configure a password for the OS inside the VM, can you save this VM virtual disk and re-use it? In this case you can place it into some secure location and try to download to AppVeyor on the fly... Just an idea...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac