Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up Xamarin.Forms & Visual Studio 2019 to pair to mac ISSUE

An unexpected error occurred while checking the SSH configuration of IP Address. Could not find a part of the path C:\Users\MyName\AppData\Local\Xamarin\MonoTouch\hosts.key

I was able to SSH log in from CMD to the Macbook, but I'm unable to pair the mac to Visual Studio (VS) 2019. I've VS and xcode installed. The emulator works on VS on the mac. Why can't I pair the MAC to my windows PC. Am I supposed to create the MonoTouch folder & hosts.key?

What is the process to do this?

P.S. I understand I can do everything on the Mac, but I prefer my PC set up for development purposes.

like image 419
Alexander Huynh Avatar asked Mar 22 '20 21:03

Alexander Huynh


People also ask

How do I create a form in Xamarin?

Create a new Xamarin.Click File > New > Project to create a new project. In the new project dialog, select the Mobile App (Xamarin. Forms) template and click Next. Name the project TimeChangerForms and click Create.

Is Xamarin forms going away?

With the sunsetting of Xamarin. Essentials, it will continue to be serviced through November 2022, but new features and APIs will only be added to .

Is Xamarin forms being deprecated?

In May 2020, Microsoft announced that Xamarin. Forms, a major component of its mobile app development framework, would be deprecated in November 2021 in favour of a new . Net based product called MAUI - Multiform App User Interface.


3 Answers

I solved it by creating MonoTouch folder and then going to Tools > Options > Xamarin > Apple Accounts and trying to connect.

like image 121
M.B Avatar answered Oct 24 '22 00:10

M.B


I solved this issue by creating the folder manually.

  1. Go to: C:\Users\myuserhere\AppData\Local\Xamarin\

  2. Then create the folder manually C:\Users\myuserhere\AppData\Local\Xamarin\MonoTouch\

like image 20
Douglas Flores Avatar answered Oct 24 '22 01:10

Douglas Flores


I got a similar error message. I deleted all the content of the folder C:\Users[MyName]\AppData\Local\Xamarin\MonoTouch*.*

I believe the issue was caused by a newer version installed on the MAC.

After deleting the content of the folder above and trying to Pair to Mac in Visual Studio 2019 (PC), I was prompted to update the MonoTouch version installed on the PC.

like image 1
Richard H Avatar answered Oct 24 '22 01:10

Richard H