New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black screen when launching for debugging on iOS 11 #358
Comments
Just to be sure, the app works correctly from Can you paste the logs from the debug console and |
It launches fine with |
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. |
no it only happens when using dart-code |
@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 =) |
@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! |
Another thing to check - |
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 Can you try running |
|
This seems like a flutter issue :( Could you raise at flutter/flutter and post the link back here? |
@DanTup The issue only happens when trying to do "start debugging" in vscode. It works perfectly whenever I try to use any terminal. I have also noticed that the app after being launched as a black screen, relaunching via my phone will fix the issue. If I launch from any other ide (Xcode/intellij) it works as it should. Does this new information make you still think the issue is flutter? |
The reason that it's believed to be a flutter issue, is that running |
I'm slightly confused, the log you posted above suggests that
It was my understanding that this eliminated Dart Code from the equation? I'm not trying to fob you off - I care very much about making sure Dart Code works for people, but with the log above it seems like the failure is not in Dart Code and I'm not sure how I can debug. |
@xster @Hixie This seems like it might be related to (or the same as) flutter/flutter#10125 or flutter/flutter#10228. I don't know how to tell if the fix there has shipped yet - can you tell if it's shipped and/or let me know how I can best tell when a changeset is out (I'm not familiar with the flutter release process at all). |
@DanTup heres what happens: could this be related to me using Xcode 9 on macOS 10.13 and iOS 11? |
Try running |
@Skylled same thing :( |
Ok, I think I can explain this bit.. When you run with I can't explain why it works from another IDE but there have been many issues raised here that "only happen in VS Code" which turn out to be bugs elsewhere (that's not to say it hasn't had its fair share of bugs!). Sometimes they're just fluke, sometimes they're race conditions caused by slight differences in behaviour and sometimes they do turn out to be reproducible elsewhere when properly checked. There's also the possibility that other IDEs don't use exactly the same tools (for example you can launch flutter apps via I really want to see this issue fixed - if it affects you it will affect other Dart Code users - but I genuinely believe at this point that the best people to diagnose/fix this are the Flutter team. I have nothing to gain by fobbing you off and I really care about my software and do not want unhappy users. I'm suggesting what I think will get the issue fixed, not what is just least work for me (I wouldn't be working on Dart Code if I wasn't happy doing work!). |
#358 (comment) is a sensible explanation. Unfortunately I can't reproduce the same issue with the 2.0.0 extension. (Also cc @devoncarew) flutter/flutter#10228 is an issue with the tool failing to install onto the simulator. @JackAppDev, do you mind also sharing your |
Looks like @cbracken might be looking at similar issues at flutter/flutter#11195 |
As Chris mentioned, it's a known iOS 11 issue turns out. All permutations of debugging doesn't work yet. (We have trouble getting the device's open port used for various debugging related tasks back to the mac on iOS 11). You can launch in Intellij/Xcode but they should have similar issues (breakpoints won't work). Maybe one minor dart code specific tweak might be to make 'Start Without Debugging' work. Doesn't seem to work for me. For now, the debugging issue is know and work's in progress. In the meantime, debugging etc works for iOS 10 devices. |
What happens when you try? (If possible, please put details in a new issue). |
it works |
@JackAppDev Do you mean "start without debugging" works for you? If so, @xster can you provide info on what you see and which platforms you're using (Mac, iOS, Emulator?) in a new case. Ta! |
@DanTup yes "start without debugging" launches the app for me correctly without the black screen. |
@JackAppDev That's good to know. Seems fine for me too, so I'll investigate @xster's issue if he can raise a new issue with more info. Based on the above, are you happy that your issue is the Flutter iOS issue mentioned above? I'll leave this issue open until it's fixed in Flutter in case others come looking, but I don't think there's anything I can do to fix (or even work around) this :( |
I guess this highlights another issue though - I'm set up on a Mac with an Android emulator but not iOS =D I'll get that sorted! |
@DanTup Yes I'm happy that I now know I can use the iOS 10 simulator with Dart-Code. I am very happy that it works as it should with hot reload and all. Waiting 30+ seconds for each change was becoming unbearable. |
Done. Split into #366. |
Update: Xcode 9 + iOS 11 are now supported. Running
Running the steps outlined should resolve the issue:
Then re-run Note that Xcode 9 is required for iOS 11 development. If you've got side-by-side installs of Xcode 8 and the Xcode 9 beta, you'll need to use the To check which tools are currently selected, run:
To switch to another Xcode version, run
|
@cbracken Do you know perhaps if it will work on macOS 10.13? Ive had issues with iOS-deploy working on 10.13 |
@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 EDIT (2017-08-31): got my hands on a 10.13 machine. Looks like |
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. |
@JackAppDev can you give a go now and let me know if any issues remain for you? |
@cbracken thanks ill check it out |
@cbracken ios-deploy installs! Still have the black screen issue though :/ I’ll update this comment with the error later Update: log is
|
@JackAppDev Thanks! Couple questions:
|
|
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? |
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. |
Ok, closing this then :-) |
using version from vscode extension marketplace
flutter create testapp
cd testapp
Edit (@DanTup): Related flutter issue -> flutter/flutter#10602
The text was updated successfully, but these errors were encountered: