András Tóth‘s professional blog
banditoth.net

Hey there 👋, I’m banditoth a .NET MAUI developer from Hungary.
I write about software development with .NET technologies.

You can find me on:
LinkedIn | Github | StackOverflow | X / Twitter | Threads

Tag: vsmac

  • .NET MAUI iOS – Can’t launch the app, crashes on splash screen error

    This content has 1 year. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    If you are facing issues launching your iOS application in VS Code, then try to analyse the Debug Console of your application.
    If you see things like this:

    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/Newtonsoft.Json.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/System.Reflection.Emit.Lightweight.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/System.Reflection.Emit.ILGeneration.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/System.Reflection.Primitives.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/System.Data.Common.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/Syncfusion.Maui.Inputs.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/ZF.Packages.Maui.Fonts.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/ZF.Packages.Maui.Views.Alerts.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/Refit.HttpClientFactory.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/Microsoft.Extensions.Http.dll
    Loaded assembly: /private/var/containers/Bundle/Application/50529075-A03E-45EC-99F6-0A539036E226/app.app/MetroLog.Maui.dll
    

    And then your application suddenly crashes showing the splashscreen, then the debugger might be slow.

    XCode 15 have problems with debugging. If you have “Connect via network” enabled on your XCode settings under Devices and Simulators, than this might be the problem. Even if you are connecting your phone wired, it starts the application debugging via wifi.
    Try updating XCode to 15.4, and update your OS to macOS Sonoma 15.4 aswell

    You can countercheck this problem by disabling the wifi on your physical device. In this case the app installs, but crashes instantly when trying to launch it.

    Additionally in Visual Studio code the solution you can disable some settings in the C# extension’s settings the Debug > Logging to speed up the loading progress when launching your app.