What causes iOS to crash from the following native code?

rami 1 Reputation point
2021-01-25T11:43:12.447+00:00

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.
Thanks

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

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.