-
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
iOS Debugger Indicates App Has Terminated Immediately #9056
Comments
I have the same issue. |
I have connect to local ipad and when app start gets an following error: do we need any setting? |
I'm facing same issue ? Loaded assembly: /private/var/containers/Bundle/Application/04806506-C300-4FAA-8B16-2C3FB8BDE211/Mobile.app/Microsoft.iOS.dll [External] |
Same issue with iPhone. |
Any solution? |
the same, 17.5 preview 1 |
Same, except the app also terminates on the iPhone. The app runs fine without the debugger. |
Same here, app starts, splash is showing, then the app is terminated. If I start it manually from the phone then, it starts and works fine. |
None. |
I am also struggling with this issue. I cannot debug my app |
Same issue here, with a brand new .NET MAUI application with .NET7. Up up up! |
Same issue here. App works fine in the simulator and testable via Testflight. But not via Remote debugging. Same message, no error log of some sorts. |
The only way I've found of debugging the iOS app was to use Visual Studio for Mac |
Thanks for the issue report @hunsra! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS. If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
This issue will be automatically closed in 3 days if there are no further comments. |
I'm having the same issue after upgrading to the latest VS 17.4.4 and Xcode 14.1 and the phone to the iOS 16.1.2 Unable to debug my iOS application which is very problematic 🥺 And the msftbot seem to close all these issues since it considers them related to VS, but we have no place to trace if any of these issues were able to be fixed, or if there are any workarounds ... Looks like we'll have to ping this issue every 3 days to keep it open if we want to have any feedback ! |
Agree with you @peter-bozovic. Same version as yours for VS and iOS, I have then tried with VS community 2022 17.5.0 Preview 3.0 and it worked (on Windows) after:
But it looks like a bit random, though... |
I could find these two exceptions and logs which occurred right before the app crash. It is not wrote in the logs in every crash, because the apple main thread is also working with the RootViewController and it will crash the app sooner as the debugger stops at the exception in MAUI. On the MAUI side in the
I think this is the cause of the crash. On the iPhone device log:
Thread 0 is the I think a workaround till MAUI fixes it could be to initialize the |
I got latest iPhone 14 for tests, and after various strange error messages, cleaning, deleting, alot of restarting of everything, it seem to work now. Maybe the only info found in #11324 is true, and the older devices are simply not fast enough to load all assemblies before VS can attach the debuger, and iOS kills it while taking too long to load ... On my previous iPhone 8 used for testing, app seemed to be killed after 15s of loading. |
That sounds plausible. I am using a iPhone 7 and it sometimes (rarely) successfully attaches the debugger. On my newer iPad it works all the time. |
Im using iPhone SE and also seeing that it crashes in different time windows. |
Yes the watchdog is killing applications if they take too much time to start. Also, don't forget to disable the "Low Power Mode", where the watchdog is even shorter! This causes the app to be killed before the debugger even connects. |
We're still getting issues on relatively recent devices like iPhone 11, unfortunately. |
This internal issue is closed now because there is no info on there. We are unable to reproduce so is likely a specific configuration or device version issue. In order to correctly investigate we need the logs that come with the report an issue feedback tool in the IDE as @mariaghiondea mentions above:
|
It also doesn't occur on Visual Studio (for Windows) if the device is plugged into the paired Mac and selected as "iOS Remote Device" from the run drop down menu. This is my current workaround. If I have it plugged in directly to the Windows machine and attempt to run on "iOS Local Device", I get the same problem as everyone else here. |
I am also having the issue. I tried to change from Xamarin to .net MAUI because of this. I have seen similar issues dating back to 2016. This is ridiculous. Considering just completely rebuilding my app using flutter because of this. |
Hi @hunsra. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. 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. |
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 4.0. Not repro on iOS platform with sample project. |
Is the fix on 17.7.0 stable? Trying it and doesn't work right now. |
There is no fix. They didn't fix anything that corresponds to this ticket. They just closed the ticket with the flag "Try latest version". |
I found a 'half' workaround.
Now breakpoints are hit and debugger works more or less, but I can't step over, need to place new breakpoints and continue (F5). |
Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you! |
@Eilon @jfversluis Should this be reactivated? It sounds like users are still hitting this problem. Uno is reporting it still as well with 17.7: unoplatform/uno#10748. |
I guess... Still a big issue when it's a bigger app. |
This should be opened if it still is happening, but in the VS Feedback tool or in the macos repo. |
@Soap-141 It sounds like you have a reliable repro for this. Do you want to go ahead and open the VS Feedback ticket and link it from here so that folks following this issue can find it? |
Sure I can try tomorrow. |
@danroth27 Did not have time to do it. Do you know if it's safe because I can't share logs from this project it's private. |
Logs are collected and uploaded by default, but you can opt out of this if you want. It will make it much more difficult to figure out what's going on though. It would be ideal if you can slim down your project to a minimal repro project that demonstrates the problem and that you can share. Or if someone else following this issue has a reliable repro that they can share please go ahead and file your own VS feedback ticket. More data from more users helps. |
@danroth27 Managed to find an easy way to reproduce it. Creating an issue right now. |
Here, I used the VS feedback tool. https://developercommunity.visualstudio.com/t/iOS-Debugger-Indicates-App-Has-Been-Te/10453966 the recording and all attachments are not visible for you guys but I did provided them. |
Description
When using the iOS remote simulator in Visual Studio 17.3.0 Preview 5, after the initial use of the debugger, subsequent uses of the debugger fail to stay connected to the app, indicating "The app has been terminated", even though the app successfully launches and stays running in the simulator.
Repro project: https://github.com/hunsra/iOSDebugger.App
Steps to Reproduce
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.5
Did you find any workaround?
If you close Visual Studio and re-open it, the debugger works once as described above.
Relevant log output
The text was updated successfully, but these errors were encountered: