Forum Xamarin.iOS

Azure Devops - MT2101: Can't resolve the reference 'System.Void ObjCRuntime.Runtime

SamsoniteSamsonite Member ✭✭

Hi All,

I was facing issue to create build on Azure Devops for Xamarin.iOS.

We have configured the pipeline for the creating a build. but After all process comes to end its show the following error.

MTOUCH : error MT2101: Can't resolve the reference 'System.Void ObjCRuntime.Runtime::ReleaseBlockOnMainThread(System.IntPtr)', referenced from the method 'System.Void ObjCRuntime.Trampolines/NIDAppVoidBoolHandler::Finalize()' in 'Xamarin.iOS, Version=, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.

Please refer attached snap.

Any help would be much appreciated.

Best Answer


  • SamsoniteSamsonite Member ✭✭

    @Siannodel said:
    Can you please try the solution in this thread?

    I tried this way also but same error still am facing.

  • NMackayNMackay GBInsider, University mod


    Just ran into the same issue for Forms 4.3.0 in out build pipelines, did you find a workaround?

  • NMackayNMackay GBInsider, University mod

    Finally fixed it by adding the following to the YAML

        - bash: |
            /bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/ 5_16_0_0"
  • KingamattackKingamattack Member ✭✭

    What if the script cannot be find in the agent?
    I have this message /bin/bash: /Users/forgemac/agent1/scripts/ No such file or directory

Sign In or Register to comment.