My large MAUI app builds successfully and runs on the iOS simulator and device in Debug mode, but it will not run in the simulator or device in Release mode.
I get this error (app name obfuscated):
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/bin/mlaunch --devname "Joe iPadPro 6th Gen" --killdev au.com.myapp.ib --launchdev /Users/joe/Projects/myapp/bin/Release/net9.0-ios/ios-arm64/myapp.app --wait-for-unlock --argument=-connection-mode --argument=usb -sdk 17.1 --sdkroot /Applications/Xcode.app/Contents/Developer
error MT0000: Unexpected error - Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new
System.InvalidOperationException: Nullable object must have a value.
at System.Nullable`1.get_Value()
at Xamarin.Launcher.DevController.LaunchDeviceUsingDeviceCtl(DeviceLaunchConfig, String) in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Launcher/controller-device.cs:line 976
at Xamarin.Launcher.Driver.LaunchOrDebugUsingDeviceCtl(Action, IRealDevice) in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Launcher/Main.cs:line 577
at Xamarin.Launcher.Driver.LaunchOrDebugAsync(Action) in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Launcher/Main.cs:line 535
at Xamarin.Launcher.Driver.MainAsync() in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Launcher/Main.cs:line 485
at Xamarin.Utils.NSRunLoopExtensions.RunUntilTaskCompletion[T](NSRunLoop, Task`1) in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Utils/Extensions.cs:line 29
at Xamarin.Launcher.Driver.Main2(String[]) in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Launcher/Main.cs:line 434
at Xamarin.Launcher.Driver.Main(String[]) in /Users/builder/azdo/_work/4/s/src/Xamarin.Hosting/Xamarin.Launcher/Main.cs:line 125
I have checked around and seen posts by Rolf where I have added the Interpreter, I have also tried disabling AOT - all to no avail.
#23923
dotnet/maui#14271
MudBlazor/MudBlazor#6310
MudBlazor/MudBlazor#6558
It gets so frustrating building for MAUI - I spend more than half my time fighting the tooling.
I have tried VS on Windows, VS Insiders on Windows and Rider on Mac.
Everything is using the latest SDKs and O/S patches.
Please help! I am desperately trying to get an update out this weekend for critical changes.
Many thanks
My large MAUI app builds successfully and runs on the iOS simulator and device in Debug mode, but it will not run in the simulator or device in Release mode.
I get this error (app name obfuscated):
I have checked around and seen posts by Rolf where I have added the Interpreter, I have also tried disabling AOT - all to no avail.
#23923
dotnet/maui#14271
MudBlazor/MudBlazor#6310
MudBlazor/MudBlazor#6558
It gets so frustrating building for MAUI - I spend more than half my time fighting the tooling.
I have tried VS on Windows, VS Insiders on Windows and Rider on Mac.
Everything is using the latest SDKs and O/S patches.
Please help! I am desperately trying to get an update out this weekend for critical changes.
Many thanks