Skip to content

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

@jmagman

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)

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