Skip to content

Show error message in app when ptrace is not permitted on iOS 14 instead of crashing #62518

Closed
flutter-team-archive/engine
#20980

Description

@jmagman

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.

Suggestion from @mraleph:

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.

#60657 (comment)

Activity

  1. added
    platform-iosiOS applications specifically
    engineflutter/engine related. See also e: labels.
    on Jul 29, 2020
  2. added this to the 1.22 - August 2020 milestone on Aug 4, 2020
  3. self-assigned this
    on Aug 4, 2020
  4. Hixie commented on Aug 18, 2020

    @Hixie
    Contributor

    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.)

  5. jmagman commented on Aug 18, 2020

    @jmagman
    MemberAuthor

    @Hixie see #60657 (comment), there's a lot more details in that issue.

  6. github-actions commented on Aug 12, 2021

    @github-actions

    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.

  7. locked as resolved and limited conversation to collaborators on Aug 12, 2021
  8. added
    P0Critical issues such as a build break or regression
    and removed on Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressioncustomer: productengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallywaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions