jamesmontemagno / Xamarin.Forms-PullToRefreshLayout

Pull To Refresh a ScrollView or ListView in Xamarin.Forms
218 stars 49 forks source link

System.Reflection.TargetInvocationException #71

Closed 1iveowl closed 5 years ago

1iveowl commented 5 years ago

I get this error when trying to use PullToRefreshLayout with Xamarin Forms 4.1.0.555618 w/ iOS:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Xamarin.Forms.Xaml.XamlParseException: Position 296:14. Default constructor not found for type Refractored.XamForms.PullToRefresh.PullToRefreshLayout ---> System.MissingMethodException: Default constructor not found for type Refractored.XamForms.PullToRefresh.PullToRefreshLayout

1iveowl commented 5 years ago

It seems linking related.

As I added --linkskip=Refractored.XamForms.PullToRefresh to the "Additional mtouch arguments" the issue went away.

I'm using Link All as Linker Behavior, to minimize App size.

jamesmontemagno commented 5 years ago

Yeah, you will probably need to link skip :) Glad you got it all fixed up.