hi,
My existing app was working great and now i just rebuilt in a following environment
nuclios 2015 v2 and vs.net 2015 and xcode 7.1 on a MAC.
I am crushing every time I click on appointment, so i traced it down to override of AppointmentTapped.
public override void AppointmentTapped(IGCalendarView calView, IGCalendarAppointment appt, IGCalendarAppointmentDataSource dataSource, CGRect rect, NSDate date)
I never break there but if I comment out the override I can click on appointment and there is no problem, putting it back causing crush with the following error:
System.MissingMethodException: Method 'NSMutableDictionary.get_Item' not found.
What could be possibly wrong?
Thank you
Mark
I downgraded vs.net 2015 to vs.net 2013, reinstalled xamarin and still get the same error but this time the error message is more verbose
System.ExecutionEngineException: Attempting to JIT compile method 'ProjectName.iOS.Delegates.CalendarViewDelegate:AppointmentTapped (Infragistics.IGCalendarView,Infragistics.IGCalendarAppointment,Infragistics.IGCalendarAppointmentDataSource,CoreGraphics.CGRect,Foundation.NSDate)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
I need some help with this please
Hello Mark,
We are testing it out now and will let you know if we have any trouble reproducing it otherwise we will get you a fix this week.
Darrell Kress
Hi Mark,
I've linked a sample project. Feel free to test it out and let us know if you have any issues.
Additionally, I had a similar problem this morning to what you mentioned on a separate Xamarin project, the only thing that would fix it was to create a new iOS solution and copy your source code to the new project. The reason for this is the old projects that use the monotouch assembly reference no longer appear to work in Xamarin. This is outside what we can support, but I thought I'd share that information with you.
Hi Torrey,
Day and a half later - same problem, regenerating project files did not help, but here is what I came up with.
Take your example, it has an empty body for AppointmentTapped override, just add the following lines to it and you will crsuh the same way I do w/o even hitting the override.
public override void AppointmentTapped (IGCalendarView calView, IGCalendarAppointment appt, IGCalendarAppointmentDataSource dataSource, CoreGraphics.CGRect rect, Foundation.NSDate date) { var appProp = new NSString(@"Appt"); var miscParam = appt.MiscProperties[appProp]; }
use of MiscProperties is a problem. (used to work fine before xcode 7, latest xamarin and 2015 v2 of Infragistics)
Any suggestions?
I did exactly as you mentioned and didn't experience any crash. I've also linked a video demonstrating my test and at the end of the video show the Xamarin Studio version number.