UIApplication Approval Approval in Xamarin.iOS Application

I was in the middle of developing an update for my Xamarin Forms application, but when I debugged it on my iPhone, it immediately crashed at startup with the following message:

Assertion failure in -[UIApplication_runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com/apple.xbs/Source/UIKit/UIKit-3600.5.2/UIApplication.m:3679 

Previously, this worked fine, but now I can not start the application on my phone without this failure. I rebuilt and deployed several times from different computers, but nothing helps. How to fix this problem?

Edit:
Before this started, I made some additions to the code. Unfortunately, after deleting all my changes, this question still haunts further development. Any help or resource that could lead me to a solution would be greatly appreciated.

+6
source share
1 answer

After some deep searching, it turns out that I mistakenly deleted part of my Application constructor that initialized MainPage . As a result, MainPage remained zero. The structure probably tried to call the method or access the property without checking if the reference was null, which caused an error. I do not know how long this error has been there.

+5
source

Source: https://habr.com/ru/post/1012179/


All Articles