3 min read

In this article by William Smith, author of Learning Xamarin Studio, we will configure our operating system.

(For more resources related to this topic, see here.)

Configuring your Mac

To configure your Mac, perform the following steps:

  1. From the Apple menu, open System Preferences.
  2. Open the Personal group.
  3. Select the Security and Privacy item.
  4. Open the Firewall tab, and ensure the Firewall is turned off.

Configuring your Windows machine

To configure your Windows machine, download and install the Xamarin Unified Installer. This installer includes a tool called Xamarin Bonjour Service, which runs Apple’s network discovery protocol. Xamarin Bonjour Service requires administrator rights, so you may want to just run the installer as an administrator.

Configuring a Windows VM within Mac

There is really no difference between using the Visual Studio plugin from a Windows machine or from a VM using software, such as Parallels or VMware. However, if you are running Xamarin Studio on a Retina Macbook Pro, it is advisable to adjust the hardware video settings. Otherwise, some of the elements within Xamarin Studio will render poorly making them difficult to use. The following screenshot contains the recommended video settings:

To adjust the settings in Parallels, follow these steps:

  1. If your Windows VM is running, shut it down.
  2. With your VM shut down, go to Virtual Machine | Configure….
  3. Choose the Hardware tab.
  4. Select the Video group.
  5. Under Resolution, choose Scaled.

Final installation steps

Now that the necessary tools are installed and the settings have been enabled, you still need to link to your Xamarin account in Visual Studio, as well as connect Visual Studio to your Mac build machine. To connect to your Xamarin account, follow these steps:

  1. In Visual Studio, go to Tools | Xamarin Account….
  2. Click Login to your Xamarin Account and enter your credentials.
  3. Once your credentials are verified, you will receive a confirmation message.

To connect to your Mac build machine, follow these steps:

  1. On your Mac, open Spotlight and type Xamarin build host.
  2. Choose Xamarin.iOS Build Host under the Applications results group.
  3. After the Build Host utility dialog opens click the Pair button to continue.
  4. You will be provided with a PIN. Write this down.
  5. On your PC, open Xamarin Studio.
  6. Go to Tools | Options | Xamarin | iOS Settings.
  7. After the Build Host utility opens, click the Continue button.
  8. If your Mac and network are correctly configured, you will see your Mac in the list of available build machines.
  9. Choose your build machine and click the Continue button.
  10. You will be prompted to enter the PIN. Do so, then click the Pair button.
  11. Once the machines are paired, you can build, test, and deploy applications using the networked Mac.

If for whatever reason you want to unpair these two machines, open the Xamarin.iOS Build Host on your Mac again, and click the Invalidate PIN button. When prompted, complete the process by clicking the Unpair button.

Summary

In this article, we learned how to configure our operating system. We also learned how to connect to your Mac build machine.

Resources for Article:


Further resources on this subject:


Packt

Share
Published by
Packt

Recent Posts

Harnessing Tech for Good to Drive Environmental Impact

At Packt, we are always on the lookout for innovative startups that are not only…

2 months ago

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago