I can't connect to Mac with Xamarin Mac Agent from Visual Studio 2015

前端 未结 15 1630
一生所求
一生所求 2020-12-08 15:07

I\'m continuing my adventure with Xamarin.

I\'m developing an Xamarin Forms application with a Portable Class Libraries (PCL).

I have compiled and debugged my

相关标签:
15条回答
  • 2020-12-08 15:39

    I have found the solution about my problem. I have done the following steps:

    1. In my Windows: I have removed the content from "%localappdata%\Xamarin\MonoTouch."
    2. In Mac terminal: Remove the authorized_keys Mac file ("rm /Users/macmini2/.ssh/authorized_keys" in my case)
    3. In Mac terminal: chmod g-w /Users/macmini2/
    4. In Mac terminal: chmod 700 /Users/macmini2/.ssh/
    5. In Mac terminal: Create a empty file: /Users/macmini2/.ssh/authorized_keys (with vim, for example)
    6. In Mac terminal: chmod 600 /Users/macmini2/.ssh/authorized_keys
    7. On Visual Studio: Login with Xamarin Mac Agent
    8. On Visual Studio: Run the application with [Debug] - [iPhoneSimulator] - [iPhone 5 iOS 8.1]
    9. And finally, the simulator runs on Mac computer.

    This link helped me.

    0 讨论(0)
  • 2020-12-08 15:40

    For me helped next solution: 1)On Windows open Visual Studio: Tools=>Options=>Xamarin=>Other and click in Check Now

    2)On Mac open Xamarin Studio Community (https://www.xamarin.com/download) Xamarin Studio Community=>Check for Updates... (and download last one)

    After updates all works fine.

    0 讨论(0)
  • 2020-12-08 15:42

    I had this problem recently (despite having enabled Sharing on the OSX host and checking firewall) and it turned out that both OSX Machine and Windows Machine needed the exact same version of Xamarin.iOS and a restart.

    Updating both, restarting both, solved the problem for me.

    0 讨论(0)
  • 2020-12-08 15:43

    I think what fixed it for me was opening git bash then running ssh onto the mac box. After saying Y to trusting credentials it worked.

    0 讨论(0)
  • 2020-12-08 15:43

    Update Visual Studion on Mac and:
    1) Delete on Mac - all files in .ssh (rm *)
    2) Delete on Mac the folder .ssh
    3) On Windows, generate your ssh key and transfer to MAC - for that Open Windows PowerShell and execute the follow commands:
    [generate the key]
    PS>ssh-keygen -t rsa -b 4096

    [define the remote host variable]
    PS>$REMOTEHOST="name_of_mac_user@ip_mac_machine"

    [send the key to mac machine]
    PS>scp "$env:USERPROFILE\.ssh\id_rsa.pub" "${REMOTEHOST}:~/tmp.pub"

    [copy the key tmb.pub to authorized_keys file and set the permissions]
    PS>ssh "$REMOTEHOST" "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat ~/tmp.pub >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys && rm -f ~/tmp.pub"

    4) check on mac .ssh folder if the authorized_keys file is correct:
    tail ./authorized_keys

    5) check the permission for authorized_keys (-rw-------)
    ls -al ./authorized_keys

    0 讨论(0)
  • 2020-12-08 15:48

    I have just solved this problem! It was nonsense.

    To connect Visual Studio Xamarin project and simulate that on Mac when you get:

    Couldn't connect to computername.local please try again later.

    What you need to do next:

    1. Follow the solution from xamarin community about mac connection after this point if everything OK, you will connect, but if no..
    2. Install XAMARIN STUDIO on MAC. After installation start XAMARIN studio, create your own app and run with simulator
    3. Close app and try to connect again from Windows computer. At this point you will make synchronization and that's all.

    Problem solved! I hope this will be useful for somebody.

    0 讨论(0)
提交回复
热议问题