-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectfyi-toolFor the attention of Flutter Tool teamFor the attention of Flutter Tool teamplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
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
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectfyi-toolFor the attention of Flutter Tool teamFor the attention of Flutter Tool teamplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team