What causes iOS to crash from the following native code?

rami 1 Reputation point

I am using AppCenter to track errors and crashes for my Xamarin Forms app and from the reports a crash with a native stacktrace is shown:

BoxRenderer.LayoutSubviews () (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) Application.Main (System.String[] args)

I am using Boxview with this code
<BoxView HeightRequest="1" HorizontalOptions="FillAndExpand" BackgroundColor="Black"></BoxView>
but i am note sure what causes that error because I cannot reproduce it.
I am asking for help if anyone has an explanation about that.

Basic Information
Version with issue:
Last known good version:
Platform Target Frameworks:
NuGet Packages:
Affected Devices: iPhone iOS 14.2, 14.3, 13.7

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
{count} votes