Introduction

Not all of us have a Mac computer, which allows us to use the iOS simulator to test our own Xamarin app. Run the app during the build process is very important and we cannot leave a platform without testing it.

Xamarin allows us to code in C just once and then deploy on the three platforms (Windows, iOS and Android), but without a Mac, the iOS environment might give us some problems.

In Visual Studio, where Xamarin is installed, we have the Xamarin Mac Agent that allows you to run iOS Simulator. For commercial choice of Apple, the iOS app build and deploy process must pass through a Mac machine, so if you have a Windows machine, you need either a Mac or a Mac Cloud Service.

We can solve the lack of a physical Mac machine with a Mac Cloud Service. There are many of those (take a look at the Web with your favorite browser), but, in this tutorial, I’ll use MacinCloud (https://www.macincloud.com) and Visual Studio 2017 Community Edition.

Now, let me show you how to test a Xamarin.Forms Application in iOS environment without having a Mac.

Prerequisites

The steps given below will lead you to the goal.

Step 1

Step 2

Step 3

Connect with the Website, choose the appropriate solution and remember to check the Remote Build Port - SSH AddOn to allow you to use Xamarin Mac Agent.

Xamarin
Xamarin
Xamarin
Step 4

Step 5

Step 6

Your MacAgent is enabled and correctly configured. Press CTRL + F5 and you will see your Xamarin.Forms Application run in iOS Simulator.

Xamarin

Conclusions

This article shows you how to complete the test of your own app also in iOS environment without a physical Mac machine.

This is a real opportunity to use Xamarin.Forms powers with the aim to deploy your Application in all the three mobile platforms.

Thank you for your interest and your attention