You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flutter attach for add-to-app modules doesn't work on iOS 14, document how to add _dartobservatory._tcp to host app #63893
2020-08-18 14:22:08.196495-0700 IOSFullScreen[343:10184] [VERBOSE-2:shell.cc(210)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
2020-08-18 14:22:08.196570-0700 IOSFullScreen[343:10184] [VERBOSE-2:engine.cc(219)] Could not prepare to run the isolate.
I think my previous Dart Error: Can't load Kernel binary: Invalid kernel binary format version. was unrelated.
I tried this again and got:
[ +20 ms] Connecting to service protocol: http://127.0.0.1:55036/xobuHBvn92Y=/
[ +1 ms] DDS is currently disabled due to https://github.com/flutter/flutter/issues/62507
[ +15 ms] Fail to connect to service protocol: http://127.0.0.1:55036/xobuHBvn92Y=/: HttpException: Connection closed before full header was received, uri =
http://127.0.0.1:55036/xobuHBvn92Y=/ws
[ +1 ms] Error connecting to the service protocol: failed to connect to http://127.0.0.1:55036/xobuHBvn92Y=/
[ +2 ms] Unforwarding port ForwardedPort HOST:55036 to DEVICE:57364
and then it exited. So it failed before Waiting for a connection from Flutter on iPhone...
default 22:31:55.907057-0700 IOSFullScreen Cache loaded with 4536 pre-cached in CacheData and 44 items in CacheExtra.
default 22:31:55.909429-0700 IOSFullScreen Initializing connection
default 22:31:55.909574-0700 IOSFullScreen Removing all cached process handles
default 22:31:55.923490-0700 IOSFullScreen FBSWorkspace connecting to endpoint : <BSServiceConnectionEndpoint: 0x2804b5500; target: com.apple.frontboard.systemappservices; service: com.apple.frontboard.workspace-service>
default 22:31:55.923604-0700 IOSFullScreen FBSWorkspace registering source: <FBSWorkspaceScenesClient: 0x283a8edf0>
default 22:31:55.923690-0700 IOSFullScreen FBSWorkspace connected to endpoint : <BSServiceConnectionEndpoint: 0x2804b5500; target: com.apple.frontboard.systemappservices; service: com.apple.frontboard.workspace-service>
default 22:31:55.923767-0700 IOSFullScreen Sending handshake request attempt #1 to server
default 22:31:55.923835-0700 IOSFullScreen Added observer for process assertions expiration warning: <_RBSExpirationWarningClient: 0x2811b8d00>
default 22:31:55.924040-0700 IOSFullScreen Creating connection to com.apple.runningboard
default 22:31:55.925524-0700 IOSFullScreen Registering for test daemon availability notify post.
default 22:31:55.926455-0700 IOSFullScreen notify_get_state check indicated test daemon not ready.
default 22:31:55.927824-0700 IOSFullScreen Handshake succeeded
default 22:31:55.927875-0700 IOSFullScreen Identity resolved as application<dev.flutter.example.IOSFullScreen>
default 22:31:55.935106-0700 IOSFullScreen Metal API Validation Enabled
error 22:32:01.282133-0700 IOSFullScreen Errors found! Invalidating cache...
default 22:32:01.370409-0700 IOSFullScreen Creating side-channel connection to com.apple.runningboard
default 22:32:01.376127-0700 IOSFullScreen Hit the server for a process handle 9901346000001a2 that resolved to: [application<dev.flutter.example.IOSFullScreen>:418]
default 22:32:01.376235-0700 IOSFullScreen Caching handle [application<dev.flutter.example.IOSFullScreen>:418], with ipc id 9901346000001a2, and pid 418
default 22:32:01.376466-0700 IOSFullScreen App is being debugged, do not track this hang
default 22:32:01.376552-0700 IOSFullScreen Hang detected: 0.27s (debugger attached, not reporting)
error 22:32:01.543006-0700 IOSFullScreen fopen failed for data file: errno = 2 (No such file or directory)
error 22:32:01.543098-0700 IOSFullScreen Errors found! Invalidating cache...
default 22:32:08.287343-0700 IOSFullScreen Received configuration update from daemon (initial)
default 22:35:15.648250-0700 IOSFullScreen Entering exit handler.
default 22:35:15.648365-0700 IOSFullScreen Exiting exit handler.
default 22:36:14.981898-0700 IOSFullScreen Cache loaded with 4536 pre-cached in CacheData and 44 items in CacheExtra.
default 22:36:14.983108-0700 IOSFullScreen Initializing connection
default 22:36:14.983216-0700 IOSFullScreen Removing all cached process handles
default 22:36:14.998568-0700 IOSFullScreen FBSWorkspace connecting to endpoint : <BSServiceConnectionEndpoint: 0x2808f2400; target: com.apple.frontboard.systemappservices; service: com.apple.frontboard.workspace-service>
default 22:36:15.029218-0700 IOSFullScreen FBSWorkspace registering source: <FBSWorkspaceScenesClient: 0x2836c9ff0>
default 22:36:15.029575-0700 IOSFullScreen FBSWorkspace connected to endpoint : <BSServiceConnectionEndpoint: 0x2808f2400; target: com.apple.frontboard.systemappservices; service: com.apple.frontboard.workspace-service>
default 22:36:15.031208-0700 IOSFullScreen Sending handshake request attempt #1 to server
default 22:36:15.031601-0700 IOSFullScreen Creating connection to com.apple.runningboard
default 22:36:15.052005-0700 IOSFullScreen Added observer for process assertions expiration warning: <_RBSExpirationWarningClient: 0x281dfa0c0>
default 22:36:15.055349-0700 IOSFullScreen Registering for test daemon availability notify post.
default 22:36:15.055427-0700 IOSFullScreen notify_get_state check indicated test daemon not ready.
default 22:36:15.055574-0700 IOSFullScreen Handshake succeeded
default 22:36:15.055645-0700 IOSFullScreen Identity resolved as application<dev.flutter.example.IOSFullScreen>
default 22:36:15.077328-0700 IOSFullScreen Metal API Validation Enabled
default 22:36:15.446491-0700 IOSFullScreen flutter: Observatory listening on http://127.0.0.1:51396/hoDZn7BUqSs=/
default 22:36:15.812340-0700 IOSFullScreen [VERBOSE-2:FlutterObservatoryPublisher.mm(115)] Failed to register observatory port with mDNS.
default 22:37:15.189527-0700 IOSFullScreen Received configuration update from daemon (initial)
from the device, then from the host
[ +34 ms] Checking for advertised Dart observatories...
[+5018 ms] No pointer records found.
[ +1 ms] mDNS query failed. Checking for an interface with a ipv4 link local address.
[ +1 ms] Found interface "en0":
[ ] Bound address: "10.0.0.40"
[ ] Found interface "en2":
[ ] Bound address: "10.0.0.253"
[ ] Found interface "bridge0":
[ ] Bound address: "192.168.2.1"
[ ] Found interface "en9":
[ ] Bound address: "169.254.50.146" link local
[ ] Found interface "en10":
[ ] Bound address: "169.254.100.163" link local
[ ] An interface with an ipv4 link local address was found.
[ +2 ms] Waiting for a connection from Flutter on iPhone...
Don't know if it's related to #60634. I don't recall seeing a broadcast prompt.
Ummm I wonder what we're doing different. I'm connecting via USB, wifi's also on the same network as the host. I'll try again later tonight on xcode/ios beta 6
This problem has started affecting me today. I could not make it work by adding the script as stated in #63893 (comment) but adding the permission to the Info.plist made it work. I think now I have to pay attention to not commiting this change.
Hi
Any chance you could explain why and how flutter needs those permissions and why it needs the Bonjour services.(maybe a link to read about it)
(I believe you probably need the Dart VM to run on top of that)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jmagman commentedon Aug 18, 2020
I'm getting:
xster commentedon Aug 18, 2020
@gaaclarke could I assign this one to you to investigate?
gaaclarke commentedon Aug 21, 2020
@xster or @jmagman can you list what versions of xcode / ios you were using? I'll try to get the latest previews.
edit: fyi the latest 14 preview came out august 18th (preview 5).
xster commentedon Aug 22, 2020
I ran into this on Xcode 12 beta 4 + iOS 14 beta 4
jmagman commentedon Aug 26, 2020
I think my previous
Dart Error: Can't load Kernel binary: Invalid kernel binary format version.was unrelated.I tried this again and got:
and then it exited. So it failed before
Waiting for a connection from Flutter on iPhone...xster commentedon Aug 26, 2020
I'm getting
from the device, then from the host
Don't know if it's related to #60634. I don't recall seeing a broadcast prompt.
gaaclarke commentedon Aug 26, 2020
xster commentedon Aug 27, 2020
Ummm I wonder what we're doing different. I'm connecting via USB, wifi's also on the same network as the host. I'll try again later tonight on xcode/ios beta 6
59 remaining items
xster commentedon Sep 21, 2020
assigning to @jmagman for doc change on https://flutter.dev/docs/development/add-to-app/ios/project-setup. Prioritization is right since we're already calling it out in https://flutter.dev/docs/development/ios-14.
chinmaygarde commentedon Sep 21, 2020
Thanks. I assigned the September milestone speculatively too. Please tweak if this is too aggressive.
lslv1243 commentedon Sep 25, 2020
This problem has started affecting me today. I could not make it work by adding the script as stated in #63893 (comment) but adding the permission to the Info.plist made it work. I think now I have to pay attention to not commiting this change.
jmagman commentedon Sep 28, 2020
@lslv1243 The new website documentation hasn't been merged yet, but you can see instructions and sample app at flutter/samples#554 for how to add the right keys to your Debug Info.plist.
Edit: the website documentation is at https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions.
MikePendo commentedon May 31, 2021
Hi
Any chance you could explain why and how flutter needs those permissions and why it needs the Bonjour services.(maybe a link to read about it)
(I believe you probably need the Dart VM to run on top of that)
jmagman commentedon Jun 1, 2021
@MikePendo The Flutter module broadcasts the port the observatory chose so you can
flutter attachfrom your host machine to hot reload, etc. There's some reference to what you could use it for in https://flutter.dev/docs/development/add-to-app/debugging#debugging.You shouldn't add
NSBonjourServicesto the Release version of your app.github-actions commentedon Aug 1, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.