Failed to resolve "System.Void ObjCRuntime.UserDelegateTypeAttribute ::. Ctor (System.Type)" link from Xamarin.iOS

I get the following error:

Failed to resolve "System.Void ObjCRuntime.UserDelegateTypeAttribute::.ctor(System.Type)" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065"

When adding and linking code from the Xamarin.Azure.NotificationHubs.iOS (v1.2.5.2) or HockeySDK.Xamarin (4.1.0) NuGet packages in the Xamarin.iOS application.

+5
source share
1 answer

This problem may occur if the Xamarin.iOS binding package is built using the current tool (Cycle 8), but it is consumed by older tools (Cycle 7).

The best way to solve this problem is to upgrade to the latest stable versions of Xamarin and Xcode. At this time of this post:

  • Xamarin Studio 6.1.1.15
  • Xamarin for Visual Studio 4.2.0.703
  • Xamarin.iOS 10.0.1.10
  • Xamarin.Android 7.0.1.3
  • Xamarin.Mac 2.10.0.105
  • Mono Framework 4.6.1.5
  • Xcode 8

If updating the Xamarin tool is not possible at this time, using the old version of the damaged NuGet package may also solve the problem.

For example, using version 4.1.0-beta3 of the HockeySDK.Xamarin NuGet package instead of version 4.1.0 .

More information can be found here: https://github.com/bitstadium/HockeySDK-Xamarin/issues/56

+5
source

Source: https://habr.com/ru/post/1258232/


All Articles