Issue with Haneke component for Xamarin, possibly linker issue

144 Views Asked by At

     Haneke component for Xamarin seems to be quite solid, nevertheless I'm having strange issue with it on devices though on sim all works as expected. The app compiles and builds ok. But when launched on device when imageView.SetImage(imageUrl); then this happens:

-[UIImageView hnk_setImageFromURL:placeholder:success:failure:] unrecognized selector sent to instance 0x181b8090

Seems like extension method can't be discovered and the corresponding header .h file is missing or something like that in Haneke.dll itself. Code for the method call is:

                HanekeUIImageView.SetImage(photoCell.ImageView,//explicit call to extension method
                //this is something that I 
                //tried, the 'usual way' of method call
                //photoCell.ImageView.SetImage(
                    new NSUrl(link),
                    EmptyImage,
                    SuccessAction ?? new Action<UIImage>((img) => {
                        SLogger.Write("Image loaded for picture url {0}\n", link);
                        photoCell.ImageView.Image = img;
                    }),
                    FailureAction ?? new Action<NSError>((err) => {
                        SLogger.Write("Image load failed for picture url {0} with error {1}\n", link, err);
                    })
                );

Also, I would like to note that I've tried umm:) I guess all possible combinations of linker options and of course "Don't link", "Link SDK assemblies only", "Link all" in VS studio Build project tab.

0

There are 0 best solutions below