Unable to Pair to Mac with Visual Studio 2022 17.3 - .NET MAUI - .net-6.0

I'm trying to pair with my Mac to build the iOS version of a MAUI application. I'm running VS2022 17.3 on both PC and Mac but getting this:
Kind of stumped as to why on a brand new Windows install and fresh versions of VS this basic function doesn't work.
Anyone know what to do to resolve this?

UPDATE:
The reason this was not working was that the OP did not have Mono installed on their System.
OG answer:
So I just tried it out on the following versions of VS MAC 17.3(Build 2102) with VS Windows 17.3 and it seems to be working
Steps I recommend you took to make sure this worked for you as well:
Make sure both PC are on the same network(LAN/WIFI)
Make sure there are no updates left over at your end.
If this was connected on a previous version of VS then you might have to disconnect/delete and reconnect this device.
Hope this helps!

Related

How to overcome "Please select a valid device before running the application." on a paired with Mac Visual Studio on Windows 10

I have a Win10 computer paired with Mac. Until today all things were okay, but today I start getting the message:
Please select a valid device before running the application
when I try to debug an iOS Xamarin application on a selected iPhone simulator.
My configurations:
Mac:
OS: Mac OS Catalina, version 10.15.7
XCode Vesion: version 12.2
Visual Studio 2019: version 8.8.4 (build 30)
Win 10:
OS: Win10 version 10.0.19042.685
Visual Studio 2019: version 16.8.3
Simulator names are available on my Win10 computer, but when I select one and try to debug an iOS application I get the message I reported above.
If I launch debug on the Mac directly it runs and starts debugging on the selected iPhone simulator. But when I do the same on the paired Win10 computer in Visual Studio I get this message.
I searched google and SO for this issue and according to advises downgraded XCode to the most possible version 12.2 that is supported by Visual Studio. But it does not change anything.
I want to debug application only on simulator on the paired Win10 computer.
Is there a way to fix this issue?
Looks like the problem was related to the connection between my Win and Mac computers.
My steps to resolve this issue:
I opened Tools - Options - Xamarin - iOS Settings on Visual Studio on my Windows computer. On the Pair to Mac dialog window I selected "Forget this connection" (right click context menu on the connection).
Next, on my Mac, I turned off Sharing (System - Preferences - Sharing).
Then I restarted my Mac computer. And then turned On sharing again, specifying my username as allowed users.
Next on my Windows computer, in the Visual Studio, on the Tools - Options - Xamarin - iOS Settings section I paired my Mac again.
Voila. All things work as expected!
If anyone else runs into this question today, I found this GitHub issue for XCode 13 issues with Xamarin.ios
https://github.com/xamarin/xamarin-macios/issues/12778
I fixed the issue by manually installing xamarin.ios-15.0.0.6.pkg on my mac (linked in the GitHub issue)
When connecting to mac through visual studio it showed the error "The Xamarin.iOS SDK version '15.0.0.6' that is installed on the Mac is not compatible with this version of Visual Studio. Would you like us to install Xamarin.iOS '14.20.0.25' for you? This will overwrite any other existing Xamarin.iOS installation on your Mac."
But, if you hit cancel it should still connect successfully.
Same issue diff version. VS MAC stand-alone also had some issue as VS WIN connected to VS MAC. Started at some early today. Suspected an update somewhere. Traced issues to auto update of XCode to 13. Solution was to download and reinstall XCode 12.5.1 from Apple Dev site. With XCode 12.5.1 things worked. So, something changed with the API in XCode and Xamarin was not prepared for it.
Restarting Visual Studio in Windows worked for me after successfully building.

Android studio quit unexpectedly on Mac Catalina beta

I installed the latest version of Mac OS (Catalina Beta 10.15) and faced with the following problem: when I open Android studio and start writing code studio quits with such crash report. Can you help me to solve this problem, as it really doesn't allow to work normally. I think that re-installing can help, but maybe there are any other solutions?
*Message in a code style, because pastebin links require that *
It's a know problem in several JetBrains based products.
As a workaround, add -Dsun.font.layoutengine=icu into Help | Edit Custom VM Options and restart IDE.
Also see: Unexpected crash when I update my MacBook Pro to MacOS Version 10.15 Beta (19A501i)

Can't connect PC to Mac (Xamarin.iOS versions mismatch)

I'm trying to connect my Windows 10 to my Mac to build a Xamarin.Forms app as I've done in the past. However, I'm getting the following error:
Xamarin.iOS versions mismatch The Xamarin.iOS SDK version installed on
Mac is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
Indeed, the version on the Mac is 11.12.0.4. I'm on the stable channel, and it's telling me there are no updates. and I'm on the latest VS on my PC - 15.8.1.
I tried clicking 'Install' but it fails telling me that
There were problems installing...
Is there a way to solve this without uninstalling and reinstalling Visual Studio (which might not even help)?
After further searching the only solution at the moment seems to be to use the beta channel in order to install Xamarin.iOS 11.14 on the Mac.
However, the better solution seems to be to wait. It's supposed to be updated
really soon [Yes. That's a quote.]
Sources for all of that (and how to upgrade using the beta channel):
https://github.com/xamarin/xamarin-macios/issues/4623
https://developercommunity.visualstudio.com/content/problem/311561/installing-xamarinios-1114-from-the-vs4win-connect.html
EDIT
Visual Studio for Mac has been updated. We're supposed to be able to update it and it's supposed to work now.

Visual studio for mac not building

When I build my project in debug mode it builds forever. However there is no problem building in release mode.
This problem first occurred when I updated visual studio for mac to the newest version:
Preview 6 (7.0 build 2740).
This is what my debug settings look like:
Any ideas are much appreciated.
Check for xamarin.forms updates in both in the ios and xamarin project. It could be that theese are not updated even though the solution is updated.
Xamarin.forms package under the iOS project might have an older version
I cannot really help you because I don't know what type of project you tried to run or which OS X you are working with.
If such an Error occurs, always check your code or try restarting your mac.
Tip: "Visual Studio for Mac Preview" is still in its Alpha. Use the Stable Update channel to avoid errors like this.

Xamarin.Forms project cannot be opened in VS2013 after install VS2015

I have a Xamarin.Forms project based on the shared template and VS2013.
I first have updated my machine from Win 8.1 to Win 10.
After doing that, I have tested the projects to my VS2013 installation. All projects including the .forms project have worked without problems.
Then I have installed VS2015 (unter Win 10).
After doing that, I cannot open my .forms-project unter VS2013 anymore.
Error message (translated to English):
Title: Check changes on project and solution.
This projects are not supported or there are changes needed that influences the project behavior so that the projects can be opened in this version of Visual studio.
Changes are automatically applied, so that the behavior is not influenced.
Not supported:
- Android-project
- iOS-Project
So… it seems as something from the VS2015 installation causes this error message in VS2013.
What do I have to do, to bring my project unter VS2013 to work again?
Done...
First, I have tried to remove the VS2013 add-on package “Get Xamarin” and reinstall the add-on package "Xamarin" (what - I think so - should be the new name of the Xamarin integration SW package).
This has not worked...
The installation then have crashed and showed a form with download-links for each piece of SW (including the Integration-SW Xamarin V3.11.1589).
I then have downloaded only the .msi to V3.11.1589 and started it.
By the setup, I was able to select the VS-Version where to install the SW (selected VS2013 as under VS2015 the SW already was installed).
After the installation, I was able again to open my project under VS2013 without error-message.
As I only had the chance to install the newest IS version and the newest V3.11.1589 have dependencies on the MAC (MAC OS at least Mac OS X 10.10.5, XCode at least 7, Xamarin.iOS at least 9.1), I was not able to connect to the MAC BH and had to update the MAC first to XCode 7.1 and the latest Xamarin Studio (about 4,5 gig to install).
After doing that, I have rebooted the MAC and also my PC, un-paired and re-paired the MAC Build Host with my PC and then was able to work again with my VS2013 installation.
Conclusion:
It seems, as the installation of VS2015 with Xamarin (at least on Win
10) removes an already installed Xamarin on an already installed
VS2013, so that the Xamarin projects cannot be opened anymore.
If VS2015 is installed (with Xamarin option), the Xamarin Integration SW V. V3.11.1589 is
installed to VS2015 (today). This is also the latest “stable”
release on the Xamarin page (but I don’t have found a dedicated
download-link for the .msi on the Xamarin pages).
So… as I think, that for VS2015 the
latest “official” version should be used, I think, you also should
install the latest version for the older VS version (so that you are
able to develop with the “old” VS version but also to migrate your
project to VS2015 what should be the target normally).
But, if you want to use this version (V3.11.1589) you also have to update XCode and Xamarin Studio on the MAC (what - depending on your Internet
connection - can take a few hours).
So… if you have the same problem, I suggest you to:
Search for the .msi to V3.11.1589 and install it (select only your “old” VS-Installation in the setup).
As I don’t have found a download link, I have posted in this thread (I think that an answer from Xamarin with a download-link should be added soon)
Update the MAC to XCode 7.1 and Xamarin Studio to the latest stable version (Xamarin.iOS, Version: 9.1.0.27)
Unpair the Build Host in the MAC
Reboot MAC and your development PC
Re-Pair the Build Host
After doing that, my VS2013 installation (Xamarin.Forms project) now works again.

Resources