Xamarin, updating app to Unified mvvmCross not compiling - xamarin

After update existing app to the Unified API, and update the mvvmCross libraries to 3.5, when I try to compile in Iphone the nex error is show:
Failed to resolve "System.Boolean Cirrious.VvvmCross.ViewModels.MvxNavigatingObject::ShowViewModel(Cirrious.MvvmCross.ViewModels.IMvxBundle,Cirrious.MvvmCross.ViewModels.MvxBundle,Cirrious.MvvmCross.ViewModels.MvxRequestedBy)" reference from "Cirrious.MvvmCross, Version=1.0.0.0, Culture=neutral, PublickKeyToken = e16445fd9b451819" (MT2002)
Archive: MTOUCHTASK
And if I double click in the error, then I get the message:
File not found: /User/Admin/Desktop/Project/iPhoneProject/MTOUCHTASK
What I'm missing? I have to update somthing else?
P.D.: I Updated Xamarin as well.

It was all a problem with the Profile of the PCL that I used in the xamarin.
I changed all the PCL to use Profile78 and then all worked so far.

Related

Using xamarin forms, still getting warning for UIWebView deprecation in app store "ITMS-90809: Deprecated API Usage"

I have removed all UIWebView references and using WKWebView now.
I am hoping any one will help me as I am stuck.
The apple depreciation warning still
persists even after following the above steps in
https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/.
My nugets are updated as per the article. And removed "obj" and "bin" folders from
ios project to just not use previous references.
I have following details:
MacMini
OS: macOS-10.15 (Catalina)
Visual Studio: 8.6.2
Xamarin.iOS: 13.18.2.1
XCode: 11.5
Xamarin.Forms: 4.8.0.1269
Xamarin.Forms.Maps: 4.8.0.1269
Xamarin.Essentials: 4.5.3.2
Xamarin.Auth: 1.7.0
But it still giving me
UIKit.UIWebView reference in following dll
One or more reference(s) to type ‘UIKit.UIWebView’ still exists inside
‘Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
One or more reference(s) to type ‘UIKit.UIWebView’ still exists inside ‘Xamarin.Auth,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
One or more reference(s) to type UIKit.UIWebView still exists inside
‘Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
One or more reference(s) to type ‘UIKit.UIWebView’ still exists inside ‘Xamarin.Auth,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
At this stage, I cannot figure out what I am missing
As it says in the error message that you are getting,
One or more reference(s) to type ‘UIKit.UIWebView’ still exists inside ‘Xamarin.Auth,
So, you need to stop using "Xamarin.Auth" as it still references UIWebView.
There's also an issue filed in the Github of that nuget. Even though there's a PR already submitted to fix that issue, but they are not going to fix it because Xamarin.Auth is not safe for use. They have made it clear that the library is deprecated, so you have to start using the SecureStorage provided by Xamarin Essentials. They even wrote a migration guide to help you with this.
So, please migrate and then delete that Xamarin.Auth package. Make sure you update the packages to the latest version and then resubmit.
This seems an existing issue of Xamarin.forms on iOS .
Make sure that the version Xamarin.Forms is 4.6 or higher and Xamarin.iOS is 13.10.0.17 or higher.
Change the Linker Behavior to SDK Only or Link All and then add the
additional arguments: --optimize=experimental-xforms-product-type
Please check all of these have been set under the release
configuration and iPhone platform.
For more details you could refer
https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/
Hi I fixed my issue by removing Xamarin Auth package. And also set mTouch argument to AppStore/iPhone iOS build configuration. It is working now. I didn't get any warning message from apple.

Xamarin Refit - Could not load assembly error

I am new to Xamarin platform and just give it a try this week.
And when I import Refit and use it somewhere, it come out this error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Refit, Version=3.0.1.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Refit.dll'
How to resolve this? it seem like android related error but I no idea how to solve it, I new to C# as well.
Thanks for help

MTOUCH: error MT0034 Xamarin.iOS and Catel

I am getting this error when I try to compile my Xamarin.iOS app. I am referencing Catel.MVVM and Catel.Fody.
Any idea what to do?
MTOUCH: error MT0034: Cannot include both 'monotouch.dll' and 'Xamarin.iOS.dll' in the same Xamarin.iOS project - 'Xamarin.iOS.dll' is referenced explicitly, while 'monotouch.dll' is referenced by 'Catel.MVVM, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null'.
One of your project parts uses the UnifiedAPI (Xamarin.iOS.dll) and another one uses the Classic API (monotouch.dll). They can not be both part of the project.
You goal should be to use the UnifiedAPI/ Xamarin.iOS.dll instead of the old monotouch assembly because with the new one you are able to get your app in the store. Xamarin Studio is able to convert your project to the UnifiedAPI. I am not sure but take a look under Project > "Convert to UnifiedAPI" or something like that.

mvvmcross xamarin android full fragging

My xamarin android project uses fragments so i added the dll "Mvvmcross - MvvmCross.HotTuna.Droid.FullFragging 3.5.1" from nuget. When i tried to build my project, i am getting the following errors. Not sure whats wrong. Could someone help me please.Attached screenshot shows the references that i have for my project.
Error XA4204: Unable to resolve interface type 'Cirrious.MvvmCross.Views.IMvxView`1<TViewModel>'.
Are you missing an assembly reference? (XA4204)Error XA4204: Unable to resolve interface type 'Cirrious.MvvmCross.Droid.Views.IMvxAndroidView`1<TViewModel>'. Are you missing an assembly reference? (XA4204)

Xamarin.Forms with custom renderer for Android yields compiler error

After upgrading to Xamarin.Forms 1.2.3 I'm getting the following compiler error related to the definition of a custom renderer:
Error CS0012: The type `Xamarin.Forms.Platform.Android.FormsViewGroup' is
defined in an assembly that is not referenced. Consider adding a reference to
assembly `FormsViewGroup, Version=1.2.3.0, Culture=neutral,
PublicKeyToken=null' (CS0012) (XFormsNavigation.Android)
What is wrong and how can I fix it?
Not sure, why you have to add a Xamarin.Forms library manually. But here's what to do:
In packages/Xamarin.Forms.1.2.3.6256-pre4/lib/MonoAndroid10/ (or similar depending on your Xamarin.Forms version) you'll find the library FormsViewGroup.dll. Add it to the references of your Android project and it should compile.

Resources