I have an application in Xamarin Forms and it stopped working on iPhones that updated to iOS 18.0
The first time I compile the application it works normally, but if I finish it and open it again, it crashes and becomes practically inoperative.
I develop in Visual Studio for Mac. As a solution I updated Xcode to 16 and Visual Studio, but without success.
Do I have any solution so I can make it work for iPhones that are on the iOS 18 version normally in Xamarin Forms or will I need to migrate to .NET MAUI?
As a solution I updated Xcode to 16 and Visual Studio, but without success.
In my case the problem was because I used the MainPage as a TabbedPage from the Xamarin Community Toolkit, and apparently after the iOS 18.0 update, this can no longer occur. Now I'm setting my MainPage first as a ContentPage and then navigating to my TabbedPage.
if (Device.RuntimePlatform == Device.iOS)
{
MainPage = new NavigationPage(new Login());
}
[...]
MainPage = new NavigationPage(new TabMainPage());