Crash when opening storyboard from Xamarin


#1

I recently updated to the newest Shinobi libraries and now when I try to open a storyboard from within my Xamarin project I get the following error:

System.ArgumentException: Multiple types (ShinobiGrids.SEssentialsPullToAction and ShinobiEssentials.SEssentialsPullToAction) registered with the same Objective-C name: SEssentialsPullToAction

  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update () [0x0010d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.2.3-branch/30c4afc3/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:88 

  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update (Boolean force) [0x0000e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.2.3-branch/30c4afc3/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:65 

  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes (IProgressMonitor monitor) [0x00040] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.2.3-branch/30c4afc3/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:504 

I am using Grid and Essentials (and charts) in my project.


#2

Same issue, looks like a blocker for me.


#3

Hi,

Thank you for raising this, this is an issue we’re aware of, and we’re currently working on a fix for it. Until that fix is available, I would suggest the following possible approaches to work around the issue:

  • In your project options, you can add an additional mtouch argument to the iOS Build options. If you add the argument --registrar:legacythen the project will be configured to use the old Xamarin type registration system, which is less strict and will not throw an error in this case.

  • If you don’t need the latest version of ShinobiGrids, you could go back to using the previous version (2.5.3). The Pull to Action control was only added to Grids in the last release, so using 2.5.3 would get rid of the type collision.

We are currently working on a fix for this issue, which will remove the need for either of these workarounds. Once the fix is released, we shall post up here to let you know.

Regards,

Dan


#4

Hi all,

We have now released version 2.6.1 of ShinobiGrids, which should fix the issue you were seeing where it wouldn’t build in the same project as ShinobiEssentials in Xamarin.

I hope this helps, let us know how things go.

Regards,

Dan