The DevOps build definition is failing to build the project with the latest pre-release of the FFImageLoading (2.4.5.880-pre). it might be that the issue is more Xamarin.Forms related than FFImageLoading, so feel free to pass that onto them if necessary.
The VS 2019 (16.0.0) debug build works perfectly fine.
The reason behind using the pre-release version of the library is this: https://github.com/luberda-molinet/FFImageLoading/issues/1154
Build finishes successfully, without any errors
Build failes with an error:
MTOUCH : error MT2101: Can't resolve the reference 'System.String System.String::Trim(System.Char)', referenced from the method 'System.Threading.Tasks.Task`1
FFImageLoading.DataResolvers.BundleDataResolver::ResolveFromBundlesAsync(System.String,System.String,FFImageLoading.Work.TaskParameter,System.Threading.CancellationToken)' in 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. [ .iOS.csproj]
Hi.. I am also getting the same error...
ha, I am getting into the same trouble
It looks similar to this: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/745
Possible workaround: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/852#issuecomment-461318277
TLDR: it's not FFImageLoading issue.
@daniel-luberda - I am getting this error while taking a debug build and not during DevOps...
@xhashimks Yes, but it's still Mono/Xamarin/Visual Studio issue
@daniel-luberda - Not sure on that.. because when I remove the FFImageLoading dependency, the iOS build goes fine... only error occurs when this is added.
I am also getting this error, does appear be FFImageLoading causing this.. :(
@Ruddy2007 @xhashimks I have the same problem in the Azure Pipeline. If you select the sdk version of xamarin 5_18_1, the problem will disappear. I leave the link to change the version of the sdk of xamarin in Azure Pipeline: https://go.microsoft.com/fwlink/?linkid=871629
@RaFaGG That did the trick, cheers for the reply.
@RaFaGG that works well,thanks a lot
@Ruddy2007 @xhashimks I have the same problem in the Azure Pipeline. If you select the sdk version of xamarin 5_18_1, the problem will disappear. I leave the link to change the version of the sdk of xamarin in Azure Pipeline: https://go.microsoft.com/fwlink/?linkid=871629
Can confirm that we too saw this error message come by on our DevOps build and @RaFaGG's solution has worked for us too. That is:
mono.version-variable, which value was set to 5_18_1.Command Line task to our iOS build phase./bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh $(mono.version)".Lets also not forget to give credit where credit's due: thanks @RaFaGG! Works like a charm!
Thanks a lot @RaFaGG, your solution works like a charm!
Awesome solution, worked for me too..Thanks @RaFaGG for the steps..
Worked for me too
Most helpful comment
@Ruddy2007 @xhashimks I have the same problem in the Azure Pipeline. If you select the sdk version of xamarin 5_18_1, the problem will disappear. I leave the link to change the version of the sdk of xamarin in Azure Pipeline: https://go.microsoft.com/fwlink/?linkid=871629