Skip to content

flutter install doesn't give useful diagnostics on failure #38614

Description

@timsneath

See below:

$ flutter build ios
Building org.sneath.isItFlutterWeb for device (ios-release)...
Signing iOS app for device deployment using developer identity: "iPhone Developer: Tim Sneath (968GPAAC8N)"
Running pod install...                                              2.2s
Running Xcode build...                                                  
                                                   
 ├─Building Dart code...                                    85.6s
 ├─Generating dSYM file...                                   0.4s
 ├─Stripping debug symbols...                                0.1s
 ├─Assembling Flutter resources...                           2.3s
 └─Compiling, linking and signing...                        25.8s
Xcode build done.                                           133.9s
Built /Users/timsneath/git/me/is_it_flutter_web/build/ios/iphoneos/Runner.app.

$ flutter install build/ios/iphoneos/Runner.app 
More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act
on all devices.

Tim's iPhone XS • 00008020-00154DAA1468002E            • ios            • iOS 12.4
iPhone Xʀ       • 58EC574B-DF41-477A-BC0A-0BC6B51AEB56 • ios            •
com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
Chrome          • chrome                               • web-javascript • Google Chrome 76.0.3809.100 

No target device found

$ flutter install -d Tim build/ios/iphoneos/Runner.app
Installing org.sneath.isItFlutterWeb to Tim's iPhone XS...
Install failed

Also see with --verbose flag set:

$ flutter install -d Tim build/ios/iphoneos/Runner.app --verbose
Installing org.sneath.isItFlutterWeb to Tim's iPhone XS...
Install failed

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      InstallCommand.runCommand (package:flutter_tools/src/commands/install.dart:44:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#3      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#4      _rootRunUnary (dart:async/zone.dart:1132:38)
#5      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#6      _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#7      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#8      Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#9      Future._completeWithValue (dart:async/future_impl.dart:522:5)
#10     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#11     _rootRun (dart:async/zone.dart:1124:13)
#12     _CustomZone.run (dart:async/zone.dart:1021:19)
#13     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#14     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#15     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#16     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#17     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#18     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

Flutter Doctor

$ flutter doctor -v
[✓] Flutter (Channel master, v1.8.5-pre.167, on Mac OS X 10.14.6 18G87, locale en-US)
    • Flutter version 1.8.5-pre.167 at /Users/timsneath/flutter
    • Framework revision 8cf40e90b0 (2 hours ago), 2019-08-15 02:32:36 -0400
    • Engine revision 426ea8dba6
    • Dart version 2.5.0 (build 2.5.0-dev.2.0 e35e8833ee)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/timsneath/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.3, Build version 10G8
    • CocoaPods version 1.7.5

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.37.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.3.0

[✓] Connected device (3 available)
    • Tim's iPhone XS • 00008020-00154DAA1468002E            • ios            • iOS 12.4
    • iPhone Xʀ       • 58EC574B-DF41-477A-BC0A-0BC6B51AEB56 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
    • Chrome          • chrome                               • web-javascript • Google Chrome 76.0.3809.100 


• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions