Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maui Blazor Hybrid app crashes on connected device after splash screen, but works on simulator #105421

Closed
caliberdigitalllc opened this issue Jul 21, 2024 · 23 comments
Assignees
Labels
area-Interop-mono blocking-release needs-author-action An issue or pull request that requires more info or actions from the author. os-ios Apple iOS
Milestone

Comments

@caliberdigitalllc
Copy link

Description

Hey all,

Been fighting with this for a while now. My app works fine on mac os, but on ios it only works on the simulator.

The same error occurs whether I send it to test flight or use a connected ios device (connected to a mac on my network)

It crashes after the splash screen displays.

Here is my debug config for ios:

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-ios|AnyCPU'">
	<BuildIpa>false</BuildIpa>
	<CodesignKey>iPhone Developer: Mitch Russell (HV48XX6D9U)</CodesignKey>
	<CodesignProvision>iOS Development AI</CodesignProvision>
	<ApplicationTitle>AlzBetter AI</ApplicationTitle>
	<ApplicationDisplayVersion>1.0.0</ApplicationDisplayVersion>
	<ApplicationVersion>1</ApplicationVersion>
	<MtouchLink>None</MtouchLink>
	<MtouchUseLlvm>True</MtouchUseLlvm>
	<EnableSGenConc>True</EnableSGenConc>
	<UseInterpreter>true</UseInterpreter>
</PropertyGroup>

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.0-preview.6.24327.7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

17+

Did you find any workaround?

no

Relevant log output

Here is the VS output window:
`INFO: 
INFO: Creating command connection...
INFO: /Users/mitch/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.2/17.2.9714-net9-p6/tools/bin/mlaunch --devname "Mitch’s iPhone" --killdev "/Users/mitch/Library/Caches/Xamarin/mtbs/builds/AbMobileMaui/2664623b18aaf6eba1b99c7c499104288933e927d68fa3e51a7b3eab74c210db/bin/Debug/net9.0-ios/ios-arm64/device-builds/iphone16.2-18.0/AbMobileMaui.app" --launchdev "/Users/mitch/Library/Caches/Xamarin/mtbs/builds/AbMobileMaui/2664623b18aaf6eba1b99c7c499104288933e927d68fa3e51a7b3eab74c210db/bin/Debug/net9.0-ios/ios-arm64/device-builds/iphone16.2-18.0/AbMobileMaui.app" -argument=-monodevelop-port -argument=10000 -argument=-connection-mode -argument=usb --setenv=__XAMARIN_DEBUG_PORT__=10000 --wait-for-unlock   -v --sdkroot "/Applications/Xcode.app/Contents/Developer" -sdk 18.0
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: Launching...
INFO: Starting debugger connection to the app 'AbMobileMaui'. Debugger port: 56501, Device port: 10000
INFO: Launching app 'AbMobileMaui' on device...
INFO: Xamarin.Hosting: Device discovery started
INFO: Using Xcode 15.4 found in /Applications/Xcode.app/Contents/Developer
INFO: Xamarin.Hosting: Connected to Mitch’s iPhone (00008130-000618A61003401C) in 00:00:00.0025563
INFO: Xamarin.Hosting: Device discovery event: GizmoPaired (00008301-A88EF1AA1180202E)
INFO: Xamarin.Hosting: Device discovery event: Connected (00008301-A88EF1AA1180202E)
INFO: Xamarin.Hosting: Device discovery event: Connected (00008130-000618A61003401C)
INFO: Xamarin.Hosting:     Xcode: /Applications/Xcode.app
INFO: Xamarin.Hosting:     Version: 7dbab91212 (refs/heads/main)
INFO: Xamarin.Hosting: Connected to Mitch’s Apple Watch Ultra (00008301-A88EF1AA1180202E) in 00:00:00.0031393
INFO: Xamarin.Hosting:     Xcode Version: 15.4
INFO: Xamarin.Hosting:     Verbosity: 1
INFO: Xamarin.Hosting: Xamarin.Hosting
INFO: xcrun devicectl -j /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp8lB6CI.tmp -v device info lockState --device "Mitch’s iPhone"
INFO: 	? unlockedSinceBoot: true
INFO: 	? passcodeRequired: false
INFO: 	Saving JSON output file to /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp8lB6CI.tmp
INFO: 	Command Completed, took 1.198 seconds
INFO: 	Using verbose logging.
INFO: 	? deviceIdentifier: 13AE7EF8-6B67-4A3E-966B-E232116C293C
INFO: 	Current device lock state:
INFO: xcrun devicectl -j /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp2DYZiy.tmp -v device process launch --terminate-existing --device "Mitch’s iPhone" com.alzbetterai.app --monodevelop-port 10000 --connection-mode usb
INFO: 	Command Completed, took 1.319 seconds
INFO: The app 'com.alzbetterai.app' launched with pid 13367
INFO: 	Saving JSON output file to /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp2DYZiy.tmp
INFO: 	Launched application with com.alzbetterai.app bundle identifier.
INFO: 	2024-07-20 18:51:57.867-0400  Acquired usage assertion.
INFO: 	2024-07-20 18:51:57.821-0400  Enabling developer disk image services.
INFO: 	Using verbose logging.
INFO: The application has been launched
INFO: 
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: Debugger connection signal received
INFO: 	0x1a08c8ad8 - /usr/lib/system/libsystem_c.dylib : abort

INFO: 	0x100db29f0 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : monoeg_g_logv

INFO: 	0x100db2b38 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : monoeg_g_log

INFO: 	0x1be938734 - /usr/lib/dyld : <redacted>

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1e8c41254):0x1e8c41244  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..).....
INFO: 	0x100ed7b6c - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_jit_init_version

INFO: 	0x100cf58ec - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : xamarin_main

INFO: Debugger connection completed
INFO: Waiting for the debugger connection signal...
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: Connecting to debug stream from device...
INFO: Connecting to debug console stream...
INFO: Connecting to remote debugger on port 56501...
INFO: Connecting to debug stream from remote debugger...
INFO: 
=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates

INFO: a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================

INFO: 	0x100cf078c - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : xamarin_bridge_initialize

INFO: .
0x1e8c41254  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91 
INFO: 	0x100ed03c0 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mini_init

INFO: 	0x100e151e4 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_assembly_open

INFO:  ...T.#...{......
0x1e8c41264  31 ec ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  1........{...._.
0x1e8c41274  c0 03 5f d6 10 27 80 d2 01 10 00 d4 03 01 00 54  
INFO: 	0x100cf5034 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : xamarin_assembly_preload_hook

INFO: 	0x100e13540 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_assembly_request_open

INFO: 	0x100e13a24 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_assembly_request_load_from

INFO: 	0x100dbd2c4 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_log_write_os_log

INFO: 	0x100eda38c - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : load_aot_module

INFO: 	0x21fd43ef8 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill

INFO: 	0x100f022e4 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_runtime_setup_stat_profiler
	0x21fc8fafc - /usr/lib/system/libsystem_platform.dylib : <redacted>

INFO: 	0x10105545c - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : sigabrt_signal_handler.cold.1

INFO: 	0x100eed32c - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_handle_native_crash

INFO: 	0x100f029f4 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_dump_native_crash_info

INFO: 	0x100e15678 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_assembly_load_corlib
	0x100e10cbc - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : mono_init

INFO: 	0x100e15490 - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : invoke_assembly_preload_hook

INFO: .._..'.........T

The app has been terminated.
INFO: Closing debug connection from device (USB)
INFO: 	0x100f4542c - /private/var/containers/Bundle/Application/7EC5EFB6-C63D-4502-A196-4B7255011A81/AbMobileMaui.app/AbMobileMaui : main

INFO: Disposing input and output streams...
INFO: Disposing input and output streams...
INFO: Disposing console and debugger streams...
ERROR: An error occurred while writing to the debug stream. Details: ObjectDisposed_Generic
ObjectDisposed_ObjectName_Name, UsbStream
ERROR: An error occurred when writing to the output stream. Details: net_io_readfailure, Operation canceled
INFO: Closing debug connection from remote debugger (TCP)
`
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@caliberdigitalllc
Copy link
Author

caliberdigitalllc commented Jul 21, 2024

FWIW, I went ahead and created a brand new Maui blazor hybrid app, completely boilerplate and just changed the app identifier to match my in progress app. Exact same thing happened. Goes to splash screen, crashes out. This is without a single other CSProj modification other than the package identifier.

`INFO: Xamarin.Hosting: Device discovery event: Connected (00008301-A88EF1AA1180202E)
INFO: Xamarin.Hosting: Device discovery event: GizmoPaired (00008301-A88EF1AA1180202E)
INFO: Xamarin.Hosting: Connected to Mitch’s Apple Watch Ultra (00008301-A88EF1AA1180202E) in 00:00:00.0036308
INFO: Xamarin.Hosting:     Version: 7dbab91212 (refs/heads/main)
INFO: Xamarin.Hosting:     Xcode: /Applications/Xcode.app
INFO: Xamarin.Hosting:     Verbosity: 1
INFO: Xamarin.Hosting:     Xcode Version: 15.4
INFO: Xamarin.Hosting: Xamarin.Hosting
INFO: xcrun devicectl -j /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp8ekK0Y.tmp -v device info lockState --device "Mitch’s iPhone"
INFO: 	Command Completed, took 1.204 seconds
INFO: 	? passcodeRequired: false
INFO: 	? deviceIdentifier: 13AE7EF8-6B67-4A3E-966B-E232116C293C
INFO: 	? unlockedSinceBoot: true
INFO: 	Current device lock state:
INFO: 	2024-07-20 20:09:48.371-0400  Acquired usage assertion.
INFO: 	Using verbose logging.
INFO: 	2024-07-20 20:09:48.371-0400  Acquired tunnel connection to device.
INFO: 	Saving JSON output file to /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp8ekK0Y.tmp
INFO: xcrun devicectl -j /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp62R610.tmp -v device process launch --terminate-existing --device "Mitch’s iPhone" com.alzbetterai.app --monodevelop-port 10000 --connection-mode usb
INFO: 	2024-07-20 20:09:49.759-0400  Enabling developer disk image services.
INFO: The app 'com.alzbetterai.app' launched with pid 13949
INFO: 	Launched application with com.alzbetterai.app bundle identifier.
INFO: 	Command Completed, took 1.360 seconds
INFO: 	Saving JSON output file to /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmp62R610.tmp
INFO: 	2024-07-20 20:09:49.807-0400  Acquired usage assertion.
INFO: 	Using verbose logging.
INFO: 	2024-07-20 20:09:49.754-0400  Acquired tunnel connection to device.
INFO: 
INFO: The application has been launched
INFO: =================================================================

=================================================================
	Native stacktrace:
=================================================================

INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: 	0x102c9809c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_runtime_init_checked
	0x102d5a4dc - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mini_init
	0x102d60758 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_jit_init_version
	0x102bd97b8 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : xamarin_bridge_initialize

INFO: ...{...C......
0x102ca0d74  08 08 40 b9 08 
INFO: ..J.......
0x102ca0d94  4c 69 69 38 6b 09 0c 8b 60 01 1f d6 00 00 40 f9  Lii8k...`.....@.

=================================================================
	Managed Stacktrace:
=================================================================
=================================================================

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

An error has occurred in the native fault reporting. Some diagnostic information will be unavailable.

=================================================================
	Native stacktrace:
=================================================================
	0x102d8b5e0 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-
INFO: 5d 10 53 09 05 00 51 3f 75 00 71  ..@..].S...Q?u.q
0x102ca0d84  e8 19 00 54 4a 0b 00 90 4a a1 0f 91 8b 00 00 10  ...TJ.
INFO: 	0x102d5ae48 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_jit_runtime_invoke
	0x102cfee94 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_runtime_invoke_checked
	0x102cb9cb8 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : create_exception_two_strings
	0x102cb9a3c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_exception_from_name_two_strings_checked

INFO: 	0x102c9809c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_runtime_init_checked

INFO: 	0x102d5a4dc - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mini_init
	0x102d60758 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_jit_init_version
	0x102bd97b8 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : xamarin_bridge_initialize

INFO: Closing debug connection from device (USB)
INFO: 	0x102bde8fc - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : xamarin_main
	0x102dce018 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : main
	0x1be938734 - /usr/lib/dyld : <redacted>

Exiting early due to double fault.

INFO: Disposing input and output streams...
INFO: Closing debug connection from remote debugger (TCP)
INFO: Connecting to debug stream from device...
INFO: Connecting to remote debugger on port 56637...
INFO: Connecting to debug console stream...
INFO: Waiting for the debugger connection signal...
INFO: Debugger connection signal received
INFO: Debugger connection completed
INFO: Connecting to debug stream from remote debugger...
INFO: 	0x102d8cb20 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : interp_runtime_invoke
	0x102d5ae48 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_jit_runtime_invoke
	0x102cfee94 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_runtime_invoke_checked
	0x102cb9cb8 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : create_exception_two_strings
	0x102cb9a3c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_exception_from_name_two_strings_checked

INFO: 	0x102cae75c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_class_create_ptr

INFO: 	0x21fc8fafc - /usr/lib/system/libsystem_platform.dylib : <redacted>

INFO: 	0x102d57ce0 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_sigsegv_signal_handler_debug

INFO: 	0x102d8b5e0 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_dump_native_crash_info

INFO: 
=================================================================
	Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.

INFO: 	0x102d75f18 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_handle_native_crash

The app has been terminated.
INFO: 	0x102dce018 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : main
	0x1be938734 - /usr/lib/dyld : <redacted>

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x102ca0d74):0x102ca0d64  ff 83 00 d1 fd 7b 01 a9 fd 43 00 91 c0 19 00 b4  ..
INFO: 	0x102bde8fc - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : xamarin_main

INFO: 	0x102cae75c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_class_create_ptr
	0x102d9e5e0 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : interp_method_compute_offsets
	0x102db08a4 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : generate
	0x102db0458 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_interp_transform_method
	0x102d9a894 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : do_transform_method
	0x102d8e628 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_interp_exec_method

INFO: BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_dump_native_crash_info
	0x102d75f18 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_handle_native_crash
	0x102d57ce0 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_sigsegv_signal_handler_debug
	0x21fc8fafc - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x102cae75c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_class_create_ptr

INFO: 	0x102cae75c - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_class_create_ptr
	0x102d9e5e0 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : interp_method_compute_offsets
	0x102db08a4 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : generate
	0x102db0458 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_interp_transform_method
	0x102d9a894 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : do_transform_method
	0x102d8e628 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : mono_interp_exec_method
	0x102d8cb20 - /private/var/containers/Bundle/Application/B58650D8-48E0-4863-BC2B-8BA7E6B4DCBF/AbMobileAi.app/AbMobileAi : interp_runtime_invoke

INFO: Disposing console and debugger streams...
INFO: Disposing input and output streams...
ERROR: An error occurred while writing to the debug stream. Details: ObjectDisposed_Generic
ObjectDisposed_ObjectName_Name, UsbStream
`

@caliberdigitalllc
Copy link
Author

caliberdigitalllc commented Jul 21, 2024

One other update. I updated the boilerplate/template blazor maui hybrid to .net core 8.0 and now it gets past the splash screen but just hangs on a white screen.

In this case, here's the log output:

INFO: Launching...
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: Launching app 'AbMobileAi' on device...
INFO: /Users/mitch/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.2/17.2.9714-net9-p6/tools/bin/mlaunch --devname "Mitch’s iPhone" --killdev "/Users/mitch/Library/Caches/Xamarin/mtbs/builds/AbMobileAi/505231ffd4dd951265338494d30686be35849b3b8c8af3ca0211b24403dc8fe6/bin/Debug/net8.0-ios/ios-arm64/device-builds/iphone16.2-18.0/AbMobileAi.app" --launchdev "/Users/mitch/Library/Caches/Xamarin/mtbs/builds/AbMobileAi/505231ffd4dd951265338494d30686be35849b3b8c8af3ca0211b24403dc8fe6/bin/Debug/net8.0-ios/ios-arm64/device-builds/iphone16.2-18.0/AbMobileAi.app" -argument=-monodevelop-port -argument=10000 -argument=-connection-mode -argument=usb --setenv=__XAMARIN_DEBUG_PORT__=10000 --wait-for-unlock   -v --sdkroot "/Applications/Xcode.app/Contents/Developer" -sdk 18.0
INFO: Starting debugger connection to the app 'AbMobileAi'. Debugger port: 56397, Device port: 10000
INFO: Creating command connection...
INFO: Xamarin.Hosting: Device discovery started
INFO: Using Xcode 15.4 found in /Applications/Xcode.app/Contents/Developer
INFO: Xamarin.Hosting: Device discovery event: Connected (00008130-000618A61003401C)
INFO: Xamarin.Hosting: Device discovery event: GizmoPaired (00008301-A88EF1AA1180202E)
INFO: Xamarin.Hosting: Connected to Mitch’s iPhone (00008130-000618A61003401C) in 00:00:00.0038982
INFO: Xamarin.Hosting: Device discovery event: Connected (00008301-A88EF1AA1180202E)
INFO: Xamarin.Hosting: Connected to Mitch’s Apple Watch Ultra (00008301-A88EF1AA1180202E) in 00:00:00.0046513
INFO: Xamarin.Hosting:     Version: 7dbab91212 (refs/heads/main)
INFO: Xamarin.Hosting: Xamarin.Hosting
INFO: Xamarin.Hosting:     Xcode Version: 15.4
INFO: Xamarin.Hosting:     Verbosity: 1
INFO: Xamarin.Hosting:     Xcode: /Applications/Xcode.app
INFO: xcrun devicectl -j /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmprUhF5G.tmp -v device info lockState --device "Mitch’s iPhone"
INFO: 	? deviceIdentifier: 13AE7EF8-6B67-4A3E-966B-E232116C293C
INFO: 	Using verbose logging.
INFO: 	Current device lock state:
INFO: 	2024-07-20 20:23:11.111-0400  Acquired usage assertion.
INFO: 	? passcodeRequired: false
INFO: 	? unlockedSinceBoot: true
INFO: 	Saving JSON output file to /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmprUhF5G.tmp
INFO: 	2024-07-20 20:23:11.111-0400  Acquired tunnel connection to device.
INFO: 	Command Completed, took 1.115 seconds
INFO: xcrun devicectl -j /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmpS1ErLG.tmp -v device process launch --terminate-existing --device "Mitch’s iPhone" com.alzbetterai.app --monodevelop-port 10000 --connection-mode usb
INFO: 	Saving JSON output file to /var/folders/d1/43d729sj4x56j9zw2b13bp7r0000gn/T/tmpS1ErLG.tmp
INFO: The app 'com.alzbetterai.app' launched with pid 14064
INFO: 	Using verbose logging.
INFO: 	Launched application with com.alzbetterai.app bundle identifier.
INFO: 	2024-07-20 20:23:12.403-0400  Acquired tunnel connection to device.
INFO: 	2024-07-20 20:23:12.455-0400  Acquired usage assertion.
INFO: 	2024-07-20 20:23:12.409-0400  Enabling developer disk image services.
INFO: 	Command Completed, took 1.278 seconds
INFO: The application has been launched
INFO: 
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: Debugger connection completed
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: [iOS Debugger] Connected to "Mitch’s iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connecting to "Mitch’s iPhone" over USB on port 10000...
INFO: Connecting to debug console stream...
INFO: Connecting to debug stream from device...
INFO: Waiting for the debugger connection signal...
INFO: Debugger connection signal received
INFO: Connecting to remote debugger on port 56397...
INFO: Connecting to debug stream from remote debugger...
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Private.CoreLib.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Collections.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.InteropServices.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Threading.Thread.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Threading.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/AbMobileAi.dll
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Private.Uri.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Maui.Controls.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Collections.Concurrent.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Maui.Graphics.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Numerics.Vectors.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.ObjectModel.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Xml.ReaderWriter.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Private.Xml.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Memory.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Diagnostics.TraceSource.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Collections.NonGeneric.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Collections.Specialized.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.ComponentModel.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.ComponentModel.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Text.RegularExpressions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Reflection.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Diagnostics.Tracing.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Intrinsics.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Win32.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.Http.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.Security.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Security.Cryptography.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Formats.Asn1.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Text.Encoding.Extensions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Numerics.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Security.Claims.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.Sockets.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.NameResolution.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Diagnostics.DiagnosticSource.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Threading.ThreadPool.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Linq.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.Quic.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.IO.Compression.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.IO.Compression.Brotli.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Threading.Channels.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Net.NetworkInformation.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Reflection.Emit.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Reflection.Metadata.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Collections.Immutable.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.IO.MemoryMappedFiles.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Loader.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Linq.Expressions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Drawing.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Serialization.Formatters.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Resources.Writer.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Xml.XDocument.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Private.Xml.Linq.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Maui.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Maui.Essentials.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Console.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Logging.Abstractions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Logging.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Options.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.ComponentModel.Annotations.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.AspNetCore.Components.WebView.Maui.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.AspNetCore.Components.WebView.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.FileProviders.Abstractions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.FileSystemGlobbing.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Text.Json.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Text.Encodings.Web.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.JSInterop.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.InteropServices.JavaScript.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.AspNetCore.Components.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.AspNetCore.Components.Web.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.AspNetCore.Components.Forms.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Serialization.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.FileProviders.Embedded.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.FileProviders.Composite.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.FileProviders.Physical.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.IO.FileSystem.Watcher.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/Microsoft.Extensions.Logging.Debug.dll [External]
Thread started:  dotnet/maui#2
Resolved pending breakpoint for 'AbMobileAi.Program.Main(System.String[])' to D:\Development\AlzBetter\AbMobileAi\Platforms\iOS\Program.cs:7 [0x00000].
Loaded assembly: data-0x105e10000 [External]
Loaded assembly: data-0x105e20000 [External]
Loaded assembly: data-0x105e30000 [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/netstandard.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:425 [0x00000].
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:420 [0x00000].
INFO: 2024-07-20 20:23:25.340 AbMobileAi[14064:4382296] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.

Thread started:  dotnet/maui#3
Thread started:  dotnet/maui#4
Thread started:  dotnet/maui#5
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Serialization.Json.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Private.DataContractSerialization.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Runtime.Serialization.Xml.dll [External]
Thread started: .NET Timer dotnet/maui#6
Thread started: <Thread Pool> dotnet/maui#7
Thread started: .NET TP Gate dotnet/maui#8
Thread started: <Thread Pool> dotnet/maui#9
Loaded assembly: /private/var/containers/Bundle/Application/A5856E94-ECFF-414F-BD51-A4DC5138EBD7/AbMobileAi.app/System.Xml.XmlSerializer.dll [External]
Thread started: <Thread Pool> dotnet/maui#10
Thread finished: <Thread Pool> dotnet/maui#7
The thread 7 has exited with code 0 (0x0).

@caliberdigitalllc
Copy link
Author

Last update - tested by using a non-blazor hybrid app (XAML) - same result using the bolierplate template.

@mattleibow
Copy link
Member

@rolfbjarne thoughts?

@mattleibow mattleibow transferred this issue from dotnet/maui Jul 24, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 24, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jul 24, 2024
@caliberdigitalllc
Copy link
Author

@rolfbjarne @PureWeen? Sorry, don't want to bug you guys too much, but I've been trying to get this going still, no luck.

@jeffschwMSFT jeffschwMSFT added arch-wasm WebAssembly architecture area-VM-meta-mono labels Jul 26, 2024
@caliberdigitalllc
Copy link
Author

@jeffschwMSFT I was able to get my device connected to my laptop to test with a direct connected device. Here's the logs that come up after the splash screen appears and we go right to the white screen:

Here are the unique errors extracted from the provided log:

Failed to force load assembly - System.Security.AccessControl.dll

Type: System.Security.Policy.Evidence
Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'
Failed to force load assembly - System.Security.AccessControl.dll

Type: System.Security.AccessControl.AuthorizationRuleCollection
Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'
Failed to force load assembly - System.Security.AccessControl.dll

Type: System.Security.AccessControl.PrivilegeNotHeldException
Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'
Failed to force load assembly - System.IO.FileSystem.Watcher.dll

Type: System.IO.FileSystemWatcher
Exception: 'System.IO.FileSystem.Watcher is not supported on this platform.'
Failed to force load assembly - System.IO.FileSystem.Watcher.dll

Type: System.IO.InternalBufferOverflowException
Exception: 'System.IO.FileSystem.Watcher is not supported on this platform.'
Failed to force load assembly - System.Net.Quic.dll

Type: System.Net.Quic.QuicClientConnectionOptions
Exception: 'System.Net.Quic is not supported on this platform: {0}'
Failed to force load assembly - System.Net.Quic.dll

Type: System.Net.Quic.QuicListenerOptions
Exception: 'System.Net.Quic is not supported on this platform: {0}'
Failed to force load assembly - System.Net.Quic.dll

Type: System.Net.Quic.QuicReceiveWindowSizes
Exception: 'System.Net.Quic is not supported on this platform: {0}'
Failed to force load assembly - System.Net.Quic.dll

Type: System.Net.Quic.QuicServerConnectionOptions
Exception: 'System.Net.Quic is not supported on this platform: {0}'
Failed to force load assembly - System.Security.Principal.Windows.dll

Type: Microsoft.Win32.SafeHandles.SafeAccessTokenHandle
Exception: 'Windows Principal functionality is not supported on this platform.'
Failed to force load assembly - System.Security.Principal.Windows.dll

Type: System.Security.Principal.IdentityNotMappedException
Exception: 'Windows Principal functionality is not supported on this platform.'
Failed to force load assembly - System.Security.Principal.Windows.dll

Type: System.Security.Principal.IdentityReferenceCollection
Exception: 'Windows Principal functionality is not supported on this platform.'
Failed to force load assembly - System.IO.Pipes.AccessControl.dll

Type: System.IO.Pipes.PipeSecurity
Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'
Failed to force load assembly - Microsoft.Win32.Registry.dll

Type: Microsoft.Win32.SafeHandles.SafeRegistryHandle
Exception: 'Registry is not supported on this platform.'
Failed to force load assembly - Microsoft.Win32.Registry.dll

Type: System.Security.AccessControl.RegistrySecurity
Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'
Failed to force load assembly - System.Runtime.InteropServices.JavaScript.dll

Type: System.Runtime.InteropServices.JavaScript.JSExportAttribute
Exception: 'System.Runtime.InteropServices.JavaScript is not supported on this platform.'
Could not resolve assembly - Microsoft.VisualStudio.DesignTools.MobileTapContracts.dll

Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/9089F844-7390-4E2B-B8DB-E5A41A0088B4/Documents/AbMobileMaui.content/Microsoft.VisualStudio.DesignTools.MobileTapContracts.dll' or one of its dependencies.
Could not resolve assembly - Microsoft.VisualStudio.DesignTools.TapContract.dll

Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/9089F844-7390-4E2B-B8DB-E5A41A0088B4/Documents/AbMobileMaui.content/Microsoft.VisualStudio.DesignTools.TapContract.dll' or one of its dependencies.
UIBackgroundModes Configuration Issue

Message: You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.

@caliberdigitalllc
Copy link
Author

@mattleibow so I have a bit more info here - it seems it's iOS18. I just tested the app on an iOS 17 device and it loads fine.

That itself is still concerning though, because iOS 18 will be available to the public in 2 months, so whatever this issue is really needs to be fixed before iOS goes gold.

@vcsjones vcsjones removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 28, 2024
@lewing lewing added os-ios Apple iOS and removed arch-wasm WebAssembly architecture labels Jul 29, 2024
@jeffhandley jeffhandley added blocking-release needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration and removed untriaged New issue has not been triaged by the area owner labels Jul 30, 2024
@jeffhandley jeffhandley added this to the 9.0.0 milestone Jul 30, 2024
@jeffhandley
Copy link
Member

@Redth Could you help us get this triaged from the MAUI side of things first to see it can be narrowed down?

@Redth
Copy link
Member

Redth commented Jul 30, 2024

@rolfbjarne @dalexsoto could you help take a look?

@dalexsoto
Copy link
Member

This is fixed in .NET 9 Preview 7 once it is released, this goes back to #105813

Image

@caliberdigitalllc
Copy link
Author

@dalexsoto I'm not 100% convinced - this error is occurring on my testflight build in release mode as well. The exact same build works fine from testflight on iOS 17, but the error occurs on iOS 18.

@caliberdigitalllc
Copy link
Author

I will of course try it on Preview 7, but if it's a matter of release vs debug, my error occurs on both.

@dalexsoto
Copy link
Member

@caliberdigitalllc fair enough, I'll re-open this and you let us know :)

@dalexsoto dalexsoto reopened this Aug 2, 2024
@caliberdigitalllc
Copy link
Author

caliberdigitalllc commented Aug 2, 2024

@caliberdigitalllc fair enough, I'll re-open this and you let us know :)

Thanks man. Not trying to doubt you in any way, but I do think this fix needs to be validated on a testlight release build to be sure.

FWIW, here's my release build command for test flight:

dotnet publish -f net9.0-ios -c Release \
    -p:ArchiveOnBuild=true \
    -p:CodesignKey="iPhone Distribution: AlzBetter LLC (8DVSMQ7G8N)" \
    -p:CodesignProvision="iOS Adhoc Distribution AI" \
    -p:CodesignTeamId="8DVSMQ7G8N"
And here's my config from CS Proj. If any of it's wrong, please do advise.
	<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-ios|AnyCPU'">
    <BuildIpa>true</BuildIpa>
    <CodesignKey>iPhone Distribution: AlzBetter LLC (8DVSMQ7G8N)</CodesignKey>
    <CodesignProvision>iOS Adhoc Distribution AI</CodesignProvision>
    <ApplicationTitle>AlzBetter AI</ApplicationTitle>
	<ApplicationDisplayVersion>1.0.0</ApplicationDisplayVersion>
	<ApplicationVersion>1</ApplicationVersion>
</PropertyGroup>

@matouskozak
Copy link
Member

if it's a matter of release vs debug, my error occurs on both.

If it's the same issue as #105813, I believe it can happen even in Release if you use <UseInterpreter>true</UseInterpreter> on iOS (is that correct @ivanpovazan ?).

@caliberdigitalllc
Copy link
Author

if it's a matter of release vs debug, my error occurs on both.

If it's the same issue as #105813, I believe it can happen even in Release if you use <UseInterpreter>true</UseInterpreter> on iOS (is that correct @ivanpovazan ?).

This sort of speaks to requesting better documentation on what flags should be set for all of the target systems and release types, like what are the "best setups" in the CSProj for each.

@ivanpovazan
Copy link
Member

hello @caliberdigitalllc!

Regarding the "best setups", ideally when you target iOS platforms you shouldn't have to enable intepreter and the default setting of the project file would give you the best performance. However, it is possible that some apps or referenced nuget packages are not AOT-compatible (require dynamic code) for which the AOT compiler is not able to generate code ahead of time. For such apps, enabling the interpreter is needed as otherwise the app would crash during runtime. This is documented in: https://learn.microsoft.com/en-us/dotnet/maui/macios/interpreter?view=net-maui-8.0

Unfortunately, it seems that you are experiencing a bug with our previous .NET9 preview releases which made these configurations additionally confusing. As @dalexsoto mentioned, we fixed this for our next release and will validate it once it is out.

@ivanpovazan ivanpovazan self-assigned this Aug 5, 2024
@ivanpovazan ivanpovazan added area-Interop-mono and removed needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration area-System.Security labels Aug 5, 2024
@caliberdigitalllc
Copy link
Author

Thanks @ivanpovazan :) I'll look forward to trying again in a week or two when P7 comes out.

@ivanpovazan
Copy link
Member

@caliberdigitalllc preview 7 is now publicly available https://dotnet.microsoft.com/en-us/download/dotnet/9.0

I verified that the template hybrid blazor app does not crash on startup in Release mode when UseInterpreter=true.
Could you please check it out with your application as well?

@ivanpovazan ivanpovazan added the needs-author-action An issue or pull request that requires more info or actions from the author. label Aug 21, 2024
@caliberdigitalllc
Copy link
Author

@caliberdigitalllc preview 7 is now publicly available https://dotnet.microsoft.com/en-us/download/dotnet/9.0

I verified that the template hybrid blazor app does not crash on startup in Release mode when UseInterpreter=true. Could you please check it out with your application as well?

Yep! I should be pushing a fresh build out in the next couple of days compiled on P7. I'll let you know.

@dotnet-policy-service dotnet-policy-service bot added needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Aug 21, 2024
@vitek-karas vitek-karas added needs-author-action An issue or pull request that requires more info or actions from the author. and removed needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration labels Aug 22, 2024
Copy link
Contributor

This issue has been marked needs-author-action and may be missing some important information.

@caliberdigitalllc
Copy link
Author

Preview 7 fixed this, thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-mono blocking-release needs-author-action An issue or pull request that requires more info or actions from the author. os-ios Apple iOS
Projects
None yet
Development

No branches or pull requests