-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[regression/8.0.0-rc.2.9511] [iOS] Can't debug or deploy to a physical device #18528
Comments
After digging through the device logs on my physical device, I found this:
|
If you deploy a .NET iOS app that doesn't use MAUI (Ex |
Hi @Dokug. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
No, the standard app template for |
After some more tinkering I identified this block in one of the main page's constructor as the culprit:
Changing the frame to a BoxView solved the startup crash on iOS |
These warnings are still there in .NET8 GA. You can try creating two fresh applications using This looks weird to me: shouldn't MAUI use .NET iOS under the hood? Could it be linked to an older version of .NET iOS? |
@rolfbjarne Does this look familiar to you? |
2343432205 = 0x8BADF00D, which means the iOS launch watchdog terminated the app because it took too long to launch. Ref: https://developer.apple.com/documentation/xcode/addressing-watchdog-terminations The crash report also says:
|
What device is this? I find a debug build does not launch on my old iPhones. Try launching a releae build and see. I do know the interpreter takes a long time to start up in debug - and potentially the hot reload. |
Hi @Dokug. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
That was an iPad Air 4th generation and a normal iPad 12th generation device |
Have these warnings been fixed? |
Nope, but they should be harmless. #19012 |
This issue was verified using Visual Studio 17.6.10 build428 (maui:8.0.7). Can be deployed to iOS devices (iOS version: 16.2&17.2.1), hot reloading is normal, but the warning still exists. |
Description
With the latest MAUI RC I have noticed that when trying to debug (or even deploying) to a physical device, the app crashes after the launch screen.
According to the debug log and break points, the app is executing my startup logic but always crashes (with no exception or message) after these 2 lines in VS Code's debug console:
It may be worth mentioning that I get the following build warnings:
I don't use these kits and have also checked with the method described in dotnet/macios#18964 that my app should not be affected by this.
Steps to Reproduce
Debug or deploy a MAUI project on a physical device.
Link to public reproduction project repository
No response
Version with bug
8.0.0-rc.2.9511
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.96
Affected platforms
iOS
Affected platform versions
iOS 17
Did you find any workaround?
Not yet.
Relevant log output
The text was updated successfully, but these errors were encountered: