You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show error message in app when ptrace is not permitted on iOS 14 instead of crashing #62518
On iOS 14 execution of JIT fails when the debugger is not attached, and debug Flutter apps (including host add-to-app applications) crash on launch when manually launched from the home screen on a physical device.
Instead of crashing, give the user a message with a link to documentation.
Suggestion from @chinmaygarde in JIT crash discussion doc:
We could toss up a UI built with UIKit that shows why the app failed to launch as well as the workaround and a link to other documentation.
I think instead of just showing a warning into the log we should be showing message box explaining that Flutter application built in debug mode can only be launched through flutter run.
Why can't we run debug applications from the launch screen anymore on iOS 14? That seems like a serious regression for many workflows. (I've seen countless people work on their apps, then unplug and head to dinner and then demo their app at dinner without having planned for doing so, relying on whatever debug build was there.)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jmagman commentedon Jul 29, 2020
Detection of issue is at:
https://github.com/flutter/engine/blob/b955e15ee9c5a8b15664aabb576e01c1233293ad/runtime/ptrace_ios.cc#L65-L69
Hixie commentedon Aug 18, 2020
Why can't we run debug applications from the launch screen anymore on iOS 14? That seems like a serious regression for many workflows. (I've seen countless people work on their apps, then unplug and head to dinner and then demo their app at dinner without having planned for doing so, relying on whatever debug build was there.)
jmagman commentedon Aug 18, 2020
@Hixie see #60657 (comment), there's a lot more details in that issue.
Avoid crashing and display error if the process cannot be prepared fo…
github-actions commentedon Aug 12, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.