- ABP Framework version: v8.1.3 / 8.2.2
- UI Type: MAUI
- Database System: EF Core SQL Server
- Exception message and full stack trace:n/a
- Steps to reproduce the issue:Start release mode app on iOS
Our application crashes on the splash screen on iOS when running in release mode. The same code works fine in debug. We've tried to match the debug/release settings in the project and it still crashes. We haven't managed to get a stack trace or any indication of what the error is.
The app runs fine in DEBUG. We've tried using all of the code that is #if DEBUG
Starting with a clean ABP.IO MAUI application built with either 8.1.3 or 8.2.2 shows the same problem.
We've tried the solution in https://abp.io/support/questions/5019/72-and-71-Maui-Android-crashes-in-Release-mode-but-works-in-Debug and we still get a crash.
App also crashes when installed via testflight. We have to use dotnet command line to build the testflight app.
I've tried creating a clean MAUI app using Visual Studio (mac) and it works until I include the ABP projects and assemblies;
We've been trying to fix this since 22/8 and are in desperate need of guidance - or how to find out what the problem actually is.
8 Answer(s)
-
0
-
0
we already tried that; in our LabMauiModule we #define DEBUG at the top
- I checked the server logs and there isn't any evidence of a call to the API being made
- we are using static proxies.
- The crash is within a short period (probably less than a second of splash screen showing)
So I don't think this is the fixed
-
0
Hi,
you can run the Maui in release mode and debug it.
-
0
Hi,
you can run the Maui in release mode and debug it.
Are you able to assist with how this is possible as only able to see options within the project properties -> iOS -> Debug -> Enable Debugging, which doesn't seem to work.
-
0
Hi,
you can try this
... var handler = new NSUrlSessionHandler { UseCookies = false, TrustOverrideForUrl = (sender, url, trust) => true }; ...
and remove
#if DEBUG
if it's work, then it's a certificate issue
-
0
Hi,
you can try this
... var handler = new NSUrlSessionHandler { UseCookies = false, TrustOverrideForUrl = (sender, url, trust) => true }; ...
and remove
#if DEBUG
if it's work, then it's a certificate issue
Have tried this and it doesn't even hit the GetInsecureHandler().
Error Message: Autofac.Core.DependencyResolutionException: An exception was thrown while activating Phenna.Infrastructure.Lab.Maui.Client.App. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(System.IServiceProvider)' on type 'App'. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while activating Phenna.Infrastructure.Lab.Maui.Client.AppShell. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Phenna.Infrastructure.Lab.Maui.Client.ViewModels.ShellViewModel)' on type 'AppShell'. ---> System.InvalidOperationException: RootViewController cannot be null
-
0
This issue still isn't resolved - can you provide guidance please.
-
0