Skip to content

Black screen when launching for debugging on iOS 11 #358

Closed

Description

@JackAppDev

using version from vscode extension marketplace

  1. flutter create testapp
  2. cd testapp
  3. Debug > Start Debugging
  4. select "flutter mobile app"
  5. Debug > Start Debugging - again
  6. App launches as black screen

Edit (@DanTup): Related flutter issue -> flutter/flutter#10602

Activity

  1. changed the title [-]Black screen when launching on mac[/-] [+]Black screen when launching app on mac[/+] on Jul 13, 2017
  2. Skylled commented on Jul 13, 2017

    @Skylled
    Contributor

    Just to be sure, the app works correctly from flutter run?

    Can you paste the logs from the debug console and flutter run -v?

  3. JackAppDev commented on Jul 13, 2017

    @JackAppDev
    Author

    It launches fine with flutter run however I get the black screen when trying to use vscode itself

  4. Skylled commented on Jul 13, 2017

    @Skylled
    Contributor

    Wow, iOS verbose logs are intense.

    So, given that the error still occurs when Dart-Code isn't involved, I suggest bringing the problem to the main Flutter repo. Someone with more Mac/iOS experience should be able to help you.

  5. JackAppDev commented on Jul 13, 2017

    @JackAppDev
    Author

    no it only happens when using dart-code

  6. added
    in debugging
    in flutter
    on Jul 13, 2017
  7. added this to the v2.1 milestone on Jul 13, 2017
  8. DanTup commented on Jul 13, 2017

    @DanTup
    Member

    @JackAppDev Could you try enabling the Observatory and FlutterRun logs (see here) and attaching them (after reviewing for no personal data).

    I removed the super-verbose comment above; I don't think it's relevant atm (esp. if it works outside Dart Code) and was tedious scrolling here on mobile =)

  9. deleted a comment from JackAppDev on Jul 13, 2017
  10. DanTup commented on Jul 13, 2017

    @DanTup
    Member

    @JackAppDev Also, can you post the version of the Dart SDK being used (it'll appear bottom right of the status bar in Dart Code), VS Code version and what device you're using (Android or iOS, emulator or physical)? Thanks!

  11. DanTup commented on Jul 13, 2017

    @DanTup
    Member

    Another thing to check - Help -> Show Developer Tools; do any errors show up in the Chrome console?

  12. JackAppDev commented on Jul 14, 2017

    @JackAppDev
    Author

    @DanTup
    Observatory file wasn't created
    run.txt

    dart is the most up to date installed with homebrew
    vs code version 1.14.0
    flutter is 1.24.0-dev.6.7
    using my physical iPhone
    no errors in dev tools

  13. DanTup commented on Jul 14, 2017

    @DanTup
    Member

    @JackAppDev

    dart is the most up to date installed with homebrew

    Flutter actually includes its own version of the SDK which is what's used here (in this case 1.24.0-dev.6.7), which I think is fairly recent.

    Based on the flutter run log it seems like something has errored - it's written a timestamp with no data (this normally happens because it writes the response then crashes/pauses before it gets flushed).

    Can you try running flutter run --machine from the same folder (this is all Dart Code is doing) and then post the output here (it should look similar to the log you attached, but hopefully includes whatever line wasn't flushed correctly here). I'll also look at making sure these logs flush in future.

  14. 33 remaining items

  15. cbracken commented on Aug 30, 2017

    @cbracken

    @JackAppDev excellent question. I don't have ready access to a 10.13 machine, but I'll try to get one set up ASAP.

    Thank you for reporting this. If you haven't already, would you mind filing a bug in the Flutter repo issues with details (and CC me)?

    Also worth checking if the issue isn't flutter/flutter#4326. There's a workaround until we've added a flutter doctor check for it.

    EDIT (2017-08-31): got my hands on a 10.13 machine. Looks like ios-deploy is not yet successfully building on 10.13. Issue is ios-control/ios-deploy#308. I've opened a Flutter tracking bug at flutter/flutter#11875.

  16. cbracken commented on Sep 5, 2017

    @cbracken

    Update: I've sent ios-control/ios-deploy#314, which resolves this issue and is now merged.

    Waiting on homebrew to update the ios-deploy formula -- PR: Homebrew/homebrew-core#17660. Once that lands, we should be all set for iOS11 / Xcode 9 / macOS 10.13 High Sierra.

    EDIT (2017-09-05): iOS-deploy is updated to 1.9.2 on homebrew now. Flutter should be good to go with iOS 11 / Xcode 9 / macOS 10.13 High Sierra.

  17. cbracken commented on Sep 5, 2017

    @cbracken

    @JackAppDev can you give a go now and let me know if any issues remain for you?

  18. JackAppDev commented on Sep 5, 2017

    @JackAppDev
    Author

    @cbracken thanks ill check it out

  19. JackAppDev commented on Sep 6, 2017

    @JackAppDev
    Author

    @cbracken ios-deploy installs! Still have the black screen issue though :/ I’ll update this comment with the error later

    Update: log is

    Launching lib/main.dart on Jack's iPhone in debug mode...
    Automatically signing iOS for device deployment using specified development team in Xcode project: 8E8ZZ4K42D
    Retrieving resting unlock: 0
    You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
    refreshPreferences: HangTracerEnabled: 1
    refreshPreferences: HangTracerDuration: 500
    refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
    Exited (sigterm)
    
  20. cbracken commented on Sep 6, 2017

    @cbracken

    @JackAppDev Thanks! Couple questions:

    1. Can you provide the output of flutter doctor?
    2. Can you try flutter run --verbose and add the logs here?
  21. JackAppDev commented on Sep 6, 2017

    @JackAppDev
    Author

    @cbracken

    Jacks-MacBook-Pro:chatter jack$ flutter doctor
    [✓] Flutter (on Mac OS X 10.13 17A358a, locale en-US, channel master)
        • Flutter at /Users/jack/flutter
        • Framework revision 3b76e7e258 (4 weeks ago), 2017-08-08 15:46:47 -0700
        • Engine revision f0d440bec3
        • Tools Dart version 1.25.0-dev.7.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
        • Android SDK at /Users/jack/Library/Android/sdk
        • Platform android-26, build-tools 26.0.1
        • ANDROID_HOME = /Users/jack/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
    
    [✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
        • Xcode at /Applications/Xcode-beta.app/Contents/Developer
        • Xcode 9.0, Build version 9M214v
        • ios-deploy 1.9.2
        • CocoaPods version 1.3.1
    
    [✓] Android Studio (version 2.3)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
    
    [✓] IntelliJ IDEA Community Edition (version 2017.2.1)
        • Flutter plugin version 16.0
        • Dart plugin version 172.3544.34
    
    [✓] Connected devices
        • Android SDK built for x86 • emulator-5554                            • android-x86 • Android 8.0.0 (API 26) (emulator)
        • Jack's iPhone             • 07a210f7588fe7c51da7ccbcdbb3958d57b3572d • ios         • iOS 11.0
    
  22. DanTup commented on Sep 30, 2017

    @DanTup
    Member

    Is this still an issue? Is there a related Flutter issue I can close this in favour of? If I understand correctly, it's no Dart Code specific, so nothing I can do to progress?

  23. cbracken commented on Sep 30, 2017

    @cbracken

    As far as I’m aware there are no Xcode 9, iOS 11, or macOS 10.13 issues remaining in Flutter on the master branch. The alpha branch hasn’t yet been rolled but we’re hoping to do that soon.

  24. DanTup commented on Sep 30, 2017

    @DanTup
    Member

    Ok, closing this then :-)

  25. added and removed
    in debugging
    blocked on dart / flutter
    on Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in dart / flutterin flutter

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions