Skip to content

flutter run should detect that targeted iOS devices are unpaired and prompt for how to fix #144447

@jmagman

Description

@jmagman

When I unpair my phone (in phone settings Developer > Clear Trusted Computers) and run flutter devices or doctor I see:

Error: iPhone is not paired with your computer. To use iPhone with Xcode, unlock it and choose to trust this computer when prompted. (code -9)

However that doesn't seem to be checked during flutter run and it totally compiles the app, and eventually fails with a generic "can't launch" message:

Could not run build/ios/iphoneos/Runner.app on iPhone.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Installing and launching...                                         71ms
Error launching application on iPhone.

Ideally it would detect the phone is not paired first and give the nicer error message.

Flutter (Channel main, 3.20.0-16.0.pre.24, on macOS 14.3.1 23D60 darwin-arm64, locale en-US)
    • Flutter version 3.20.0-16.0.pre.24 on channel main at /Users/magder/Projects/flutter

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectfyi-toolFor the attention of Flutter Tool teamplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions