Can't connect VS2017 RC to mac agent - visual-studio

I had a configuration where VS 2015 was successfully connecting with Xamarin Mac Agent on same network.
I upgraded to VS 2017 RC & now the VS fails connecting to xamarin mac agent with error: "
Couldn't connect to 'your-mac-name' Please try again
Nothing else in the configuration has changed.

Had to upgrade the Mac to sierra, xcode to latest build available & also install latest versions of Xamarin.iOS for VS on Windows then it started connecting to mac again.

Related

Unable to run iOS project in VS 2022 for Mac

I just upgraded from VS 2019 to VS 2022 for Mac. I'm now unable to "run" a project in iOS Simulator. I can build it just fine. I can "run" the project on Android Emulator just fine.
I'm only presented with the "Hammer" icon and not the "Run/Arrow" icon.
VS 2022 Mac Version: 17.3.8
macOS Version: 12.6
I have tried the following:
Full uninstall using the Microsoft-provided uninstall scripts.
Full reinstall from scratch.
I have XCode 14 and I have opened it to make sure it installed the additional components.
My iOS Bundle Signing window is empty:
The only solution I found is to create a new empty project and import all my files from the broken project.

Connection failed from Visual Studio 2022 (MAUI, Xamarin) to macOS

I updated macos to version 13 Ventura. I'm developing apps using Xamarin/MAUI on Visual Studio on Windows. Access to macOS over the network is no longer possible. Error message: Unable to connect to SSH using the SSH keys. I have enabled remote access to macOS.
Please ne noted that macOS 13 (Ventura) ships with OpenSSH_9.0p1.
You can try to edit /etc/ssh/sshd_config and save it.
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
And then restart the Mac and Visual Studio.
This was an bug on Visual Studio 17.3.4 (see https://developercommunity.visualstudio.com/t/macOS-Ventura-130-Beta---Impossible-to/10163760?q=%5BFixed+In%3A+Visual+Studio+2022+version+17.4%5D) that is fixed on 17.4.0, so update to Visual Studio 17.4.0 and the error is gone.

Unable to connect to Mac Server with Address='IP Address' and User='Username'. The build can't continue without a connection

I have a problem.
My Visual Studio 2019 (16.8.2) is connected to my virtual Mac on VMware but getting build from the project gives the following error. I use the latest version of XCode, vs 2019 on PC , vs on Mac
Error message
Unable to connect to Mac Server with Address='192.168.1.149' and User='{username}'. The build can't continue without a connection App2.iOS

Xcode couldn't be found at /Applications/Xcode.app

I get Xcode couldn't be found at /Applications/Xcode.app when I try to run the sample single view app from Visual Studio 2019.
Do I have to install XCode on the windows machine I am using or the Mac that is building the code?
I don't have visual studio on the Mac and was hoping that I wouldn't have to install it. Am I wrong?
Yes, you need to install VS and XCode on the Mac. This is clearly covered in the docs
Set up Windows (Install Visual Studio 2019)
Set up Mac (Install Xcode and Visual Studio for Mac)
Pair to Mac (Connect Visual Studio 2019 to the Mac)

Visual Studio 2017 cannot send code to Mac using Taco Remotebuild

I know this question had been asked hundrets of times, but the solutions provided did not help me.
I now have installed Visual Studio Professional 2017 (previously Professional 2015), build 15.9.17 with Apache Cordova. I click on 'Release' --> 'iOS' --> 'Remote Device' in my project. In the platforms folder I deleted the previous ios folder beforehand.
On my Mac (High Sierra) I have installed Taco Remotebuild, created a Remotebuild.config with the following entries: "appLaunchStepTimeout": 600000, "emulatorLaunchTimeout": 600000. I also ran chmod 777 /Users/micha/.taco_home/remote-builds/taco-remote/builds.
Now I am starting remotebuild --secure false on my Mac and after a while I can see that my Visual Studio connects to the Mac. However after a while it says:
Severity Code Description Project File Line Column Suppression State
Error An error occurred uploading to the build server
http://192.168.178.35:3000/cordova/build/tasks?command=build&vcordova=6.3.1&cfg=release&options=--device:
Timeout for operation exceeded (translated from German "Timeout für
Vorgang überschritten") My-famous-program 6.0.1 1 1
Severity Code Description Project File Line Column Suppression State
Error An error occured connecting to the build machine: The build url
cannot be null. My-famous-program 6.0.1 1 1
Note: Both computers are connected using Wifi; a physical connection is not possible. On each computer Node.js with version 8.16.2 is running; a newer version is not possible due to other dependencies.
What do I have to do to have this running?
Thanks in advance!
Does the cordova folder get built on the MAC? I can connect and it sends over the project, but because Microsoft doesn't support cordova in VS you need to manually create a project on the MAC and then copy your www that was passed from VS to your newly created project. I found this works for me.
See this too: Visual Studio Taco - Remotebuild will no longer deploy to remote device

Resources