Xamarin.iOS versions mismatch 11.14 - ios

I am on current Visual Studio Version 15.8.4 which contain Xamarin.iOS 11.14.0.13. Today I updated my Visual Studio for Mac and automatically updated Xamarin.iOS to version 12.0.0.15 (based on he Xcode 10 final release) which is not compatible. I get the following error:
Xamarin.iOS versions mismatch
The Xamarin.iOS SDK version installed on
Max 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.
When I click 'Install' then the following error occurs:
Error
There were problems installing Xamarin.iOS '11.14'. Please try
again and if the problem persists, try installing directly on the Mac
and connect again.
On the mac I chose Update channel: Stable. I also tried the other channels withoud success. I am not able to install version 11.14 at all at the moment.
Is my only option to wait until they fix that version mismatch?

Visual Studio Version 15.8.5 fixes this. The release notes contain the following text:
Visual Studio Tools for Xamarin now supports Xcode 10, which allows
you to build and debug apps for iOS 12, tvOS 12, and watchOS 5.

I am getting the same error after reading this blog post and following the upgrade suggestions.
https://blog.xamarin.com/ios-12-and-xcode-10/
But my first read through I missed this little tidbit.
"On Windows, Visual Studio 2017 will prompt for an update as it rolls out."
It appears as if the Visual Studio update might not be available yet. I allowed the prompt to downgrade the SDK and I can now connect again. My problem now is that I can no longer use the iOS Xamarin Simulator on my Windows machine. I get a device not found.
I figure the only way to fix this is to downgrade my Xcode back to 9. A workaround is to simply uncheck the "Remote Simulator to Windows" option in Visual Studio under Xamarin -> iOS Settings. That allows the simulator to launch my app on the Mac. I think I can live with this for now and hope that a new VS update is right around the corner.
Update: I also think it is important to mention that Matthew Clendening in the comments to the original post did provide a link to a preview release of the Visual Studio tools if any was unwilling to wait for an official release.
Update 2: We decided to try the pre-release versions of the Visual Studio tools that Matthew linked above and did verify that Pairing works after installing them. If people are not spooked off by pre-release software then it is a viable option.
Update 3: I spoke too soon. I am able to Pair with my Mac with XCode 10 installed but still cannot get the Simulator to run on my windows machine so I am essentially back to where I was when I down graded Xamarin.iOS SDK to 11.4. I am going to dig more to see if this is an unrelated issue.
Last Update: So, overnight as Todd mentioned Microsoft released 15.8.5 and after upgrading, everything is working normally again. Lesson learned ... don't upgrade ANYTHING until EVERYTHING is ready.

Related

Xamarin Classic IOS, Visual Stuidio for mac

Good morning and thank you for your time,
I am maintaining a mobile App made in Xamarin classic IOS with the Visual Studio Mac IDE. Recently Apple told me that I had to increase the SDK of this application to 15 to be able to upload my new version to the App Store, for this I had to update the operating system to MacOS Monterey Version 12.3.1, to later update Xcode 13.4 and to update the SDK of my project, once this change was made in Visual Studio Mac debugging options were disabled and the debug icon was changed to compile. When I access Run in the top menu of visual studio mac, the options to start debugging are disabled and no matter how much I change the debug project options remains the same.
Regards
enter image description here
It is very likely that you have some other Debug configuration that works (in Xamarin it could be Debug|iPhone).

vs 2017 and target framework version 9 in xamarin.android

I used to create my apps using visual studio 2019 but for some reason I had to downgrade to vs 2017. my apps used to work properly and I had no problem compiling them on my physical device that has android 10 on it. now i'm getting an error when I open my old apps using vs 2017 that target framework version 9 is not supported. and when I try to create new apps, they won't run on my phone. I tried to change my target framework version but there is only versions up till android 6. i'm trying to install version 9 using the sdk manager but it's not working. I would like to know how to solve this issue. should I reinstall vs 2019. thanks in advance.
I attached a photo to show you what i'm doing to install api 29.
What is Xamarin version? I suspect that your version of Xamarin.Android is 6.x which means that you won't be able to target Android 7.0 or 7.1 even if they are installed through the SDK manager.
You can check the version from Help > About Microsoft Visual Studio.
If you're using Visual Studio 2017 or newer, Xamarin updates are delivered as part of Visual Studio updates. To manually check for updates, go to Tools > Extensions and Updates... In the left hand menu, open Updates and select Product Updates. If there are updates available, they will be shown on this list.

Error MT0026 on Xamarin Forms

I'm trying to run an iOS simulator from my Xamarin Forms project. I had it working a month ago, and when I returned to it, I get the following error:
error MT0026: Could not parse the command line argument '-sdk': Version string portion was too short or too long.
I updated all the NuGet packages and updated Xamarin itself.
The only thing I can find on the issue is here: Xamarin.iOS Errors
Also, my mac is up-to-date and I made sure xcode was up-to-date as well.
I had exactly the same error when I first started Visual Studio on MacOS. For me the list of device emulators was empty. The only available device listed was "Generic Device". After I restarted Visual Studio all available simulation devices turned up:
Actually this appears whenever you make an important OS update. Why?
Because usually something gets changed into Xcode and one needs to open the app to agree whatever they want you to agree.
After that, restart Visual Studio and everything is back to normal.

Xamarin studio - this project type requires Xamarin.Android to be installed

I have recently installed Win10, VS2017 Community and Xamarin Studio on my computer. My project is written in VS2017, and when I compile and run it on the device from VS2017 it all works fine, but when I open it in Xamarin studio, I get error "this project type requires Xamarin.Android to be installed". I installed monodevelop, gtk sharp, build tools fool. In Android SDK Manager I installed all I needed. Also, when I press "New solution" in Xamarin studio, it does not offer "Android project". None of the answers I found doesn't works for me. All of the above mentioned worked perfectly on Win7, except that that project was written in VS2015 Community! Need help. Thanks in advance!
I ran into this issue as well. I had been developing in Visual Studio 2017 and wanted to switch to Xamarin Studio for working on layouts, since the designer and AXML intellisense is so much better.
What I discovered is that I needed to install a seperate Xamarin.Android package. I downloaded it from this link https://store.xamarin.com/account/my/subscription/downloads. The universal installer didn't work for me; it only offered to install a remote iOS emulator, Xamarin Profiler, and Xamarin Workbooks, so I downloaded the separate installer and it cleared the issue up.
I came across this same error, and the search results brought me here. Unfortunately, the solutions above are now out of date.
I eventually solved my problem, by going to Preferences -> Projects -> SDK Locations -> Android. Where it immediately showed a popup "SDK needs repair". I had to leave it to download the necessary components.
FYI, Xamarin Studio is now Visual Studio for Mac.

Xamarin: No iOS Class in add new item for Visual Studio 2015

I am following the steps in the Windows Hello,iOS example at
https://developer.xamarin.com/guides/ios/getting_started/hello,_iOS/hello,iOS_quickstart/
When I get to step 18, there is no iOS class to choose from. See my screen (https://imgur.com/xrYID31). Look at the image in step 18 and you will see I am missing iOS. All other steps work without issues (connecting to Xmarin, selecting an iPhone project, choosing iPhone6 format etc). The tools to connect to my Mac work, I can launch the simulator etc.
I have uninstalled Xamarin 3 times now and rebooted in between. I am at a complete loss here. I followed all of the instructions on how to do a complete removal and clean install. Still no luck. How can I add iOS to this menu?
I am running Windows 10 latest updates and VS 2015 Pro inside a Parallels VM under OS X 10.11.2. Downloaded the latest Xamarin from website.
Someone from Xamarin support got back to me. It appears to be a documentation issue and they are notifying the docs group. When I click "Add Item", I do not see an iOS section but you don't need to have one. The C# Class template under code will do just fine. In step 18, you can ignore the iOS tree and just go straight to Code and then C# Class. See the attached image to see the differences.
I haven't used Xamarin on Visual Studio for a while now, Mac seems to have a lot less issues.
But you need to do 3 things :
Install Xamarin.iOS on Mac host, and activate
Configure your Mac host ( I recommend trying a sample iOS app using Xamarin studio at this point )
If all goes well, Install Xamarin for Visual Studio, and activate, and connect to your mac host
For more detailed instructions, you can see this :
Xamarin Getting Started with visual studio

Resources