Hello,
I amhaving a problem with sfSchedule causing my xamarin.forms app to crash in IOS. When I remove it from the xaml, the app loads find, but as soon as i put it back in, the app crashes on loading. Here is my xaml and the error message:
XAML
<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:HandymanScheduler" xmlns:schedule="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms" xmlns:busyindicator="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms" x:Class="HandymanScheduler.MainPage"> <Grid VerticalOptions="FillAndExpand"> <StackLayout VerticalOptions="FillAndExpand"> <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand"> <Label Text="{Binding LoggedInUser.EmailAddress}"></Label> <Button Text="Refresh" Command="{Binding RefreshCommand}" HorizontalOptions="End"></Button> </StackLayout> <Button Text="Sign In" Command="{Binding SignIn}"></Button> <local:EditorLayout x:Name="editorLayout" IsVisible="{Binding EditorVisible}"/> <schedule:SfSchedule x:Name="schedule" IsVisible="{Binding ScheduleVisible}" ScheduleView="WeekView" AllowAppointmentDrag="True" DataSource="{Binding Appointments}" CellTappedCommand="{Binding ScheduleCellTappedCommand}" VisibleDatesChangedCommand="{Binding DatesChangedCommand}" VerticalOptions="FillAndExpand"></schedule:SfSchedule> </StackLayout> <busyindicator:SfBusyIndicator x:Name="busyindicator" AnimationType="SlicedCircle" ViewBoxWidth = "150" ViewBoxHeight="150" EnableAnimation="True" IsBusy="{Binding IsBusy}" Title="{Binding BusyTitle}"/> </Grid> </ContentPage>
Exception
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1cef4f0dc):0x1cef4f0cc fd 7b
c1
a8
c0 03
10
29
5f d6
80
d2
10 00 d4 .{
01
.
0x1cef4f0dc c3 00
...._..).....
00 54 fd 7b bf a9 fd 03 00
91 55 d6 ff 97 .
..T.{......U...
0x1cef4f0ec bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 90 29
80 d2 .....{.
..._..)..
0x1cef4f0fc 01 10 00 d4 c3
00 00 54 fd 7b bf a9 fd 03 00 91 ..
.....T.{
......
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at ObjCRuntime.Runtime:ThrowNSException <0x00016>
at ObjCRuntime.Runtime:throw_ns_exception <0x0000a>
at ObjCRuntime.Runtime:throw_ns_exception <0x00032>
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:IntPtr_objc_msgSend_UIntPtr <0x0001e>
at Foundation.NSArray:GetAtIndex <0x00036>
at Foundation.NSArray:UnsafeGetItem <0x00010>
at Foundation.NSArray:GetItem <0x00040>
at Syncfusion.SfSchedule.iOS.SFSchedule:SetDefaultValue <0x00294>
at Syncfusion.SfSchedule.iOS.SFSchedule:.ctor <0x00164>
at Syncfusion.SfSchedule.XForms.iOS.SfScheduleExt:.ctor <0x00002>
at Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer:GetNativeSchedule <0x00002>
at Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer:OnElementChanged <0x000a8>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0
x002a2>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
ageRenderer:ViewDidLoad <0x0010c>
at System.Object:runtime_invoke_direct_void__this__ <0x0008e>
=================================================================
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.P
The app has been terminated.
My app works find in the simulator as well. However, both my app and the sample you sent me crash when I run it on my actual iphone. It also crashes for apple themselves. I submitted to the store to run it in Testflight, and they rejected it because it crashes on opening.
I am using Xamarin.Forms 5 from Visual Studio 2022 and I am targeting Android and IOS. In summary, Android works find both on the Emulator and on an actual device and IOS works find on the simulator but crashes on my iPhone 6. My iphone runs IOS 12.5.5 and I used the simulator 'iPhone 13 iOS 15.2'.
The sample app you sent me also crashes on my iPhone, but runs fine on the simulator.
I was just following up to see if there is any more traction on this issue.