Articles in this section
Category / Section

No count method exist exception when using ListView in Xamarin.Forms.iOS

1 min read

When creating Xamarin.Forms samples that uses Xamarin.Forms ListView with Linker Behavior in iOS renderer project as “Link Framework SDK’s only”, No Count Method exist exception will be thrown. This error occurs in few cases based on the iOS version of the Xcode. This is reproducible even in a simple scenario and has been reported as a bug in Bugzilla as well. You can see the details of it from the below thread.

Bug link:  https://bugzilla.xamarin.com/show_bug.cgi?id=49053

However, you can able to skip this error in two ways either by changing the “Linker Behavior” or by “Setting custom linker argument” which are explained below.

Changing Linker Behavior:

To avoid this issue, please choose the Linker behavior as Don’t Link” in the iOS renderer project.

Forms iOS Renderer Project -> Options -> iOS Build -> Linker behavior -> “Don’t Link


 

Custom linker argument:

You can also bypass this error by setting a custom linker argument. Check the documentation here.

https://developer.xamarin.com/guides/ios/advanced_topics/linker/#Skipping_Assemblies

You can set an “mtouch” argument to skip the assembly which needs to be preserved. For this error, you will be able to run your app by skipping the System.Core assembly. Refer the screenshot for more details.

Conclusion

I hope you enjoyed learning about no count method exist exception when using ListView in Xamarin.Forms.iOS

You can refer to our Xamarin.Forms ListView feature tour page to know about its other groundbreaking feature representations. You can also explore our Xamarin.Forms ListView documentation to understand how to present and manipulate data.

For current customers, you can check out our Xamarin.Forms from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our Xamarin.Forms ListView and other Xamarin.Forms Controls.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied