Ffimageloading: CI failing with an error MT2101: Can't resolve the reference 'System.String System.String::Trim(System.Char)'

Created on 11 Apr 2019  路  14Comments  路  Source: luberda-molinet/FFImageLoading

Description

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

Steps to Reproduce

Expected Behavior

Build finishes successfully, without any errors

Actual Behavior

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]

Basic Information

  • Version with issue: 2.4.5.880-pre
  • Last known good version: 2.4.4.859
  • Platform: iOS

Screenshots

Reproduction Link / Code

iOS won't fix

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

All 14 comments

Hi.. I am also getting the same error...

ha, I am getting into the same trouble

@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:

  1. We created a new mono.version-variable, which value was set to 5_18_1.
  2. Added a Command Line task to our iOS build phase.
  3. Included this as the command line script to execute: /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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dkornev picture dkornev  路  4Comments

abenedykt picture abenedykt  路  3Comments

Pinox picture Pinox  路  5Comments

RaZp29 picture RaZp29  路  4Comments

paleicikas picture paleicikas  路  5Comments