We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

"No Count Method exist exception" when using SfDataGrid in Xamarin.Forms.iOS

When creating Xamarin.Forms samples that uses SfDataGrid with Linker behavior in iOS renderer project as “Link Framework SDKs 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 below screenshot for more details.

 

http://www.syncfusion.com/uploads/user/kb/xamarin/xamarin-1367/xamarin-1367_img1.png

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5975 01/12/2016 01/31/2017 Xamarin.Forms SfDataGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.