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.
Related
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
I am implementing google Admob in my Xamarin.Forms application. My android project is working perfectly but my iOS project fails to build. when I build the project it shows
Failed to resolve "ObjCRuntime.TrampolineBlockBase" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065"
and it also say I am missing few files.
I tried to download the mobile sdk framework for ios from https://developers.google.com/admob/ios/quick-start#cocoapods and then add to the project but I can't seem to add this framework to references.
Any kind of help is really helpful.
I had this issue on App Center. Resolved by upgrading SDK and Xcode versions in build configuration options
I was able to resolve the issue from upgrading the visual studio 2019 to 16.4.5 and downgrading the Xamarin.Firebase.iOS.AdMob from 7.47.0.1 to 7.27.0.3
After doing that I restarted Visual Studio and build the project it successfully built.
Also, I referred to this link for help
Edit:
In short, Visual studio installed the new appropriate mono framework for ios which basically solved the issue here.
In case anyone else runs into this issue, I got this issue after adding the Maps sdk to iOS. I had to upgrade Xamarin.iOS from 13.6.0.12 to 13.10.0.21 to resolve the issue.
I'm new to Xamarin unfortunately. I've been trying to create a simple page with a map on it using the Xamarin.Forms.Maps package, but upon building I run into about 92 errors all describing that various packages could not be found:
error: package com.google.android.gms.common.api.GoogleApiClient does not exist
error: package com.google.android.gms.common does not exist
error: package com.google.android.gms.maps.GoogleMap does not exist
error: package com.google.android.gms.maps does not exist
error: package com.google.android.gms.tasks does not exist
...and many others. My solution is a Cross-Platform Xamarin.Forms blank mobile app using a .NET class library which I have nothing but the NETStandard.Library, Xamarin.Forms and Xamarin.Forms.Maps packages installed on. I thought that I had set it up correctly according to the official Microsoft documentation, but I still get all these weird errors and searching online for a solution has not been much help. Can someone give me assistance? Let me know if I need to clarify anything.
I had exactly the same issue with the same 92 errors after upgrading my version of Xamarin.Forms to V3.0.0.561731 and installing the latest version of Xamarin.Forms.Maps in Visual Studio Community 2017.
I solved the issue by adding "Google Play Services" via the Android SDK Manager. The item can be found on the "Tools" tab of the Android SDK listed under "Extras".
Note: I had to come out of Visual Studio, and rebuild my solution, and it worked.
Make sure you have installed the nuget on your android project
Xamarin.GooglePlayServices.Base
and
Xamarin.GooglePlayServices.Maps
It's a google maps API requisite.
You can see an entire explanation on official documentation on this link: https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/maps-api#google-maps-api-prerequisites
I had the same error.
For me the solution was to switch to the Visual Studio Preview Channel. I'm now on Version 15.8.0 Preview 2 and the error has gone away.
To get the Preview Channel you can download it here https://www.visualstudio.com/de/vs/preview/
Had this behavior but was because I only included Xamarin.Forms.Maps in PCL project. As soon as I added Xamarin.Forms.Maps also into Android (specially here) and iOS projects all compiled fine.
Today I added to my project
using Microsoft.Azure.Mobile;
using Microsoft.Azure.Mobile.Analytics;
using Microsoft.Azure.Mobile.Crashes;
I should use Visual Studio Mobile Center but after that I receive an error for 52 times
/Users/enricorossini/Projects/myInventories/myInventories/myInventories.iOS/MTOUCH:
Error MT5209: Native linking error: warning: object file
(/Users/enry/Projects/myInventories/my/my.iOS/obj/iPhone/Debug/build-ipad6.3-10.1.1/mtouch-cache/MobileCenterAnalytics.a(MSPageLog.o))
was built for newer iOS version (8.0) than being linked (7.0) (MT5209)
(my.iOS)
What can I do to resolve it? Thank you in advance.
Our minimum SDK version is iOS 8.0 and above. In your Xamarin iOS project, open Info.plist file and set the "Deployment Target" to be at least 8.0 to fix the linking error.
Ok, I discovered the problem.
In the Application Output I found that
error MT1108: Could not find developer tools for this 10.2 (14C92)
device. Please ensure you are using a compatible Xcode version and
then connect this device to Xcode to install the development support
files.
I updated my iPad with the latest and I didn't update Xcode.
I'm following this tutorial for mvvmcross and I'm trying to get the "Windows Phone UI" project working. However when I try to set references to the mvvmcross binaries, Visual Studio (2012 Premium) displays an error: a reference to a higher version or incompatible assembly cannot be added to the project.
I am using the mvvmcross binaries from 2013_01_28 as specified in the tutorial and have installed Windows Phone SDK (7.1 and 8.0). I have tried with both WP7.1 and WP8 projects but same error occurs.
Are there perhaps different binaries I should be using for WP8 VS2012?
What am I missing here?
Thanks in advance!
My guess is that you downloaded the files from the Interweb and Windows is protecting you from evil.
Try unblocking the assemblies:
http://pcmusings.wordpress.com/2012/10/31/vs2012-windows-phone-and-the-reference-to-a-higher-version-error/