Forum Xamarin.iOS

How can I solve this linker error


I have my Linker Behavior set to 'Link Framework SDKs Only'

The error I'm getting is:
Can't resolve the reference 'System.Reflection.Emit.DynamicMethod', referenced from the method 'System.Func2<System.Object,System.Object> System.Web.Http.Metadata.Providers.AssociatedMetadataProvider1::CreateDynamicValueAccessor(System.Reflection.MethodInfo,System.Type,System.String)' in 'mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

I've tried the following additional mtouch arguments without any success:

Could anyone please advise on this?


  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai


    System.Reflection.Emit is not available on iOS. Whatever is using CreateDynamicValueAccessor might need to be refactored.

  • SomewhereElseSomewhereElse USMember ✭✭

    Thanks @JohnMiller, I'm not directly using System.Reflection anywhere, or a method called CreateDynamicValueAccessor.
    Is there any reasonable way I can find what package might be calling this?

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai


    I'm not sure of an easier way other than removing some packages that you think are the culprit and trying again.

    System.Web.Http.Metadata.Providers.AssociatedMetadataProvider might be a good indicator.

Sign In or Register to comment.