Xamarin.ios app Native linking failed after updating VS 2019 - xcode

I am developing xamarin.ios application using Visual studio 2019 on PC which paired with late 2011 Macbook Pro. Today I accidentally updated the Visual studio to Version 16.5.4. Which Updated the xamrin.ios to Version 13.16.0.13(b75deaf). After that I can't able to run application. The visual studio tells to update the Xcode to 11.4 Which is currenlty 11.3. In order to do that I need to update the OS to catelina.,which is not provided for the old mac(also I don't want to upgrade).
Apart from this warning these error also thrown by VS.
Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -lc++ -lsqlite3 -lz
Native linking failed, undefined symbol: ___darwin_check_fd_set_overflow. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
linker command failed with exit code 1 (use -v to see invocation)
How can I solve this issue without updating the Xcode.Is downgrading of VS is possible? Any help is really apprecitated.

Thanks for Jack Hua - MSFT's answer.
Rather than downgrading visual studio in PC, I downgraded the Xamrin.ios in my mac.
Earlier I used Visual studio 16.5.0 which comes with Xamarin.ios Vesion 13.14.1.39.
which was overwritten when I updated the VS 2019 to 16.5.4.
So I downloaded the Xamrin.ios 13.14.1.39 from this site.Link.Normally to download xamarin.ios package, we need to have account. In this link just replace the version number to directly download the package.After installing the package in mac, I am able to build the App.

If you want to get a older version of Visual-Studio or Xamarin.iOS, you need to contact to the support team to request the version you want.
Refer: install-previous-version-of-visual-studio-for-mac and downgrade-xamarin-ios-in-visual-studio

Related

Visual Studio issue pairing to Mac

Using latest Visual Studio for Windows 17.4.2, connecting to my Mac having Xcode 14.1, I get this message when Pairing to Mac:
The Xcode version installed on the Mac (14.1) is not compatible with
this version of Visual Studio. This may cause unexpected warnings or
errors when building and deploying iOS projects. Please install Xcode
'13.3'. To download a specific version of Xcode, visit:
https://developer.apple.com/downloads.
If I continue, no iOS simulators are available for debugging. And when trying to debug on my iPhone connected by wire the the Mac, I get a compiler error:
fatal error: 'CHIP/CHIP.h' file not found
I have search the web. Only old articles appear from September. I have tried XCode 14.0 still, same issues.
Last resort was downloading XCode 13.4.1 that seems ton works. I can start simulation... Finally!
Is it really true that XCode 14 is yet not supported by Visual Studio?
Please be noted that the final builds of Xcode 14.1 are ready for you to test on Xamarin, but they are not included in IDE (it is not supported yet in MAUI), you have to install the pkg files of Xamarin.iOS and Xamarin.Mac to your Mac,refer to Xcode 14.1 Support · Issue #16659 · xamarin/xamarin-macios.
Is it really true that XCode 14 is yet not supported by Visual Studio?
Xcode 14 is supported, and it is recommended that you use Xcode 14.0 for now. The Xcode version in AppStore is Xcode14.1 currently, you can download Xcode 14.0 from the downloads page in the Apple Developer Portal.

How to use an older version of Xamarin.iOS with Visual Studio Mac?

Hi i mistakenly upgraded Visual Studio for Mac to 8.5.2 (build 13) which has Xamarin.iOS Version: 13.16.0.13 (Visual Studio Community).
Turns out this doesn't work with XCode 11.3.1 and needs XCode 11.4, which means I will need to upgrade the OS from Mojave to Catalina; i'm not ready to upgrade the OS just yet..
I have tried searching on the Microsoft website, but cant see any obvious links to downgrade or select a different Xamarin.iOS version
How can i roll back the Xamarin.iOS to a version that is compatible with XCode 11.3?
To use an older version of Xamarin.iOS you need to download it from a link.
It's very difficult to answer this question, because the answer need a link..
And Link-only answers can become invalid if the linked page changes...
So, First you need to find the version number of your wanted Xamarin.iOS.
Here you can see all release Version tags from the official
xamarin github repository.
https://github.com/xamarin/xamarin-macios/tags
Then you need to found the Microsoft official patern link from their official download .pkg repository used by Visual Studio.
The official Microsoft pkg repository : https://aka.ms/xvs/pkg
The patern link : https://aka.ms/xvs/pkg/<framework>/<version>.
Finally, you need to create your own link regardless you framework and version
Example:
Xamarin.iOS: https://aka.ms/xvs/pkg/macios/15.4.0.0
But you need to found out your own link by your self.
You can also try from the github
Xamarin.iOS https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md

Getting an error while using Microsoft.AppCenter with Xamarin.iOS

I am trying to use Microsoft.AppCenter nuget to a Xamarin app. Xamarin.Android is building fine. But I am getting an error while trying to build the Xamarin.iOS app.
MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kMSLongTypedPropertyType. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
I have tried the solution mentioned in the below link
https://learn.microsoft.com/en-us/xamarin/ios/troubleshooting/mtouch-errors#MT5210
But I am still getting the error while I am trying to build Xamarin.iOS app. I am using the below configurations:
Visual Studio Community 2019 for Mac
Version 8.4.4 (build 91)
Xamarin.iOS
Version: 13.10.0.17 (Visual Studio Community)
The issue got fixed after installing Microsoft.AppCenter.Analytics and Microsoft.AppCenter.Crashes. As #Junior Jiang - MSFT mentioned, if code uses microsoft app center to get the analytics and crashes, we need to install these two nugets along with Microsoft.AppCenter. Thanks.

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.

Need lower version of visual studio for mac

I just want to download a lower version of Visual Studio for Mac. The current version is 7.5.1 and I want to download 7.4.3.
Can anyone tell me where can I get that download file or link?
From some guesswork I found it by using this URL :
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.4.2.12.dmg
Not installed it tho.
From this, comment on the 9th May link seems like you have to open a support ticket?!?!
As an update on this topic, all of the recent previous Xamarin.iOS,
Xamarin.Android, and Xamarin.Mac packages are available in the
archives on the open source continuous builds server (under the
Xamarin.Android and Xamarin.MaciOS tabs). And the Mono Framework MDK
is similarly available in the Mono Project download archive. I have
now updated the 15.7 Release Xamarin Release Blog post to provide the
links to those locations. In many cases, the latest version of Visual
Studio for Mac will be backwards compatible with previous versions of
the Xamarin SDKs, so you can in many cases just install those earlier
Xamarin SDK versions over the current versions and leave Visual Studio
for Mac and Mono Framework MDK at the latest.
If you do need to get an older version of Visual Studio for Mac
itself, the best option at this time is still to create a support
incident to request the version you'd like. The updated info for
creating a Visual Studio for Mac support incident is to go to
Technical Support > Product: Visual Studio > Assisted Support on
https://www.visualstudio.com/vs/support/ and then select Visual Studio
Community/Professional/Enterprise 2017 for Mac.
I used to download previous releases from my Xamarin account page
which now doesn't seem to exist anymore.
At the moment, the direct link to the old downloads page
(https://store.xamarin.com/account/my/subscription/downloads) is not
yet set to redirect, so it is still possible to access that page, but
indeed that page is considered deprecated in favor of the open source
continuous builds archive at this time, and the previous versions
provided on that page are from the earlier Xamarin 15.5 Release rather
than the Xamarin 15.6 Release.
Bunch of other versions in case someone needs them:
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.3.0.797.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.3.0.799.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.3.3.5.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.3.2.12.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.4.0.1033.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.4.0.839.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.3.3.5.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.4.0.884.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.4.0.985.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.4.0.1026.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.5.0.933.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.5.0.1062.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.4.1.48.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.5.0.1161.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.5.0.1244.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.5.0.1222.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview-7.6.0.711.dmg
https://dl.xamarin.com/VsMac/VisualStudioForMac-7.8.4.1.dmg
Note: These are from the index.xml files that VS4M downloads that includes all the matching packages for each release
You could also look for versions listed at the brew repository.
Use the url pattern https://dl.xamarin.com/VsMac/VisualStudioForMac-{version}.dmg.

Resources