How to debug iOS app in physical device without Mac machine

jstuardojstuardo Member ✭✭
edited July 10 in Xamarin.iOS

Hello,

I developed an app that should be saved and tested in an iPhone. I used Visual Studio 2019 on a PC.

At the moment, I have read that I need a Mac computer to compile for iPhone, and in fact, when plugging the iPhone in a USB port, it is not listed in the devices combobox, the same way an Android device is in the Android project.

Is there a remote possibility to use a PC to build and save the app in the iPhone and then debug it? Or at least, to run it using the same phone.

If it is not possible, and according your experience, would it work if I try a Mac virtual machine? All of you guys have Mac computers to develop for iOS?

I wait your comments.

Thanks

Jaime

Answers

  • DirkWilhelmDirkWilhelm USMember ✭✭✭✭
    edited July 10

    To compile an ios app, you will need XCode running on a mac. If you don't own a mac, you can try using a cloud service like https://www.macincloud.com/

    Using a virtual machine should also be possible, but as far as i know there is no "official" way to get a virtual machine with macos.

    Another way is to use https://appcenter.ms/ to build your app.

  • jstuardojstuardo Member ✭✭

    Thanks @DirkWilhelm for your reply.

    App center sounds interesting. I have created an account to start exploring.

    How about debugging the app step by step? will it be possible using a cloud service?

    I have downloaded a macOS High Sierra 10.13 Virtual Box machine. I will give a try.

    Regards

    Jaime

  • LandLuLandLu Member, Xamarin Team Xamurai

    @jstuardo We don't recommend you to install VMs on a windows machine as it is in violation of Apple's licensing for Mac OS. Apple only allows VMs run on a real Mac device as the host.
    Maybe you can try some cloud services which offer Mac OS but it still can't help you deploy the project on your real iPhone because the Mac is not by your side. And generally, these services are not free.
    Moreover, App Center can only help you deploy your application to your iPhone. You cannot debug the codes line by line.
    Unfortunately, if you want to develop iOS applications it's better to buy a Mac machine.

Sign In or Register to comment.