maui: Debugging/Deployment in iOS with net7.0 is broken

Description

Debugging/deployment of net7.0 iOS applications is currently broken. I have now replicated this bug on multiple computers with multiple devices and I believe my issues are related to the bug #11392.

I have tested using Windows 11 and Windows 10 and using an iPhone 6s and iPhone SE.

It is trivial to replicate this problem, creating a new Maui project targeting net7.0 using Visual Studio 2022 simply fails to start, if I change the exact same project to net6.0 the project starts and runs successfully.

I note that even if I don’t attach the debugger the net7.0 version of the application will still not load, while the 6.0 version loads successfully.

device log output.txt

Installed Workload Id Manifest Version Installation Source

maui-windows 7.0.59/7.0.100 VS 17.4.33403.182
maui-maccatalyst 7.0.59/7.0.100 VS 17.4.33403.182
maccatalyst 16.2.1007/7.0.100 VS 17.4.33403.182
maui-ios 7.0.59/7.0.100 VS 17.4.33403.182
android 33.0.4/7.0.100 VS 17.4.33403.182
ios 16.2.1007/7.0.100 VS 17.4.33403.182
maui-android 7.0.59/7.0.100 VS 17.4.33403.182

Example of bug from VS:

https://user-images.githubusercontent.com/32756170/218912661-27fbc17c-f471-42a3-b1b1-dec341700983.mp4

Example of bug from iPhone:

https://user-images.githubusercontent.com/32756170/218914106-4dbd509c-c12b-4cfa-8f4e-d51a6b4dfef6.MP4

Example of bug resolved after changing target to net6.0 iPhone:

https://user-images.githubusercontent.com/32756170/218923665-41893695-bd3f-4546-81b2-fc1b0fdbaba0.MP4

Steps to Reproduce

  1. Create new Maui project using Visual Studio 2022 targeting net7.0. Project fails.
  2. Retarget the same project to net6.0. Project starts successfully.

Link to public reproduction project repository

https://github.com/MaximG1234/MauiBug

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

Primary test device iOS version 15.7.3

Did you find any workaround?

NO

Relevant log output

Log output attached

VS bug #1748012

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 36 (1 by maintainers)

Most upvoted comments

Hi, I have the same problem, does anyone have an update??

No, MS doesn’t care at all.

Same issue here. Not being able to debug with .NET 7 on a local device/iPad. Not even able to run it on iPad (without attached debugger). Splash screen starts and after 8 seconds watchdog kicks in and kills application. When budling against .NET 6 then it works as expected.

@MaximG1234 Are you using Microsoft Visual Studio Community 2022 (64-bit) - Preview? I have not used the normal VS 2022 for a long time. I have no problem creating and running the standard Maui app targeting .net 7.0 using VS2022 preview. I can run it on all platforms, including iOS iPhone and iPad and simulations.

No it’s not resolved. It’s being tracked in another ticket as Redth says.

Any progress with this issue? This is a show stopper, we cannot even run an empty .NET 7 MAUI app on iOS devices.