Repository navigation
hot-reload on ios device not working #7233
Copy link
Copy link
Closed
Labels
platform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to Reproduce
- start new project
- try and
flutter run -d DEVICE_ID
Logs
OrionsBelt:nothing orion$ flutter run -d OrionsPhone
Launching lib/main.dart on OrionsPhone...
Exception from flutter run: Exception: Timeout while attempting to retrieve Uri for Observatory
package:flutter_tools/src/base/common.dart 31 throwToolExit
package:flutter_tools/src/protocol_discovery.dart 55 ProtocolDiscovery.nextUri.<async>.<fn>
===== asynchronous gap ===========================
dart:async _Future.timeout
package:flutter_tools/src/protocol_discovery.dart 53 ProtocolDiscovery.nextUri.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/protocol_discovery.dart ProtocolDiscovery.nextUri
package:flutter_tools/src/ios/devices.dart 268 IOSDevice.startApp.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/ios/mac.dart 178 buildXcodeProject.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/base/process.dart 148 runAsync.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/ios/devices.dart IOSDevice.startApp
package:flutter_tools/src/hot.dart 202 HotRunner._run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/resident_runner.dart 124 ResidentRunner.startEchoingDeviceLog.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart HotRunner._run
package:flutter_tools/src/hot.dart 130 HotRunner.run.<fn>
package:stack_trace Chain.capture
package:flutter_tools/src/hot.dart 129 HotRunner.run
package:flutter_tools/src/commands/run.dart 240 RunCommand.runCommand.<async>
flutter run -d DEVICE_ID --verbose yields the following:
[ +331 ms] [100%] Installed package build/ios/Release-iphoneos/Runner.app
[ +186 ms] ------ Debug phase ------
[ ] Cannot debug (15fd8b8e59199c9d0f5ec890ed2a5e80104568e1ss) over WIFI.
[ +4 ms] Application launched on the device. Attempting to forward ports.
Flutter Doctor
OrionsBelt:nothing orion$ flutter doctor
[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/orion/dev-build/flutter
• Framework revision 37d78753a2 (27 hours ago),
• Engine revision 2f32e8054d
• Tools Dart version 1.21.0
[✓] Android toolchain - develop for Android devices (Android SDK 22.0.1)
• Android SDK at /Users/orion/Library/Android/sdk
• Platform android-22, build-tools 22.0.1
• Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.1, Build version 8B62
[✓] IntelliJ IDEA Community Edition (version 2016.3)
• Dart plugin version 163.8651
• Flutter plugin version 0.1.5
[✓] Connected devices
• OrionsPhone • DEVICE_ID • ios • iOS 10.1.1 (14B100)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
platform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
mikemimik commentedon Dec 10, 2016
It would seem like the package
libimobiledevicedefaults to finding a device on the same wifi over usb port. It would seem like at some point it would be worthwhile to put some time into learning precisely whatlibimobiledeviceis doing, and how it's functioning.Solution: turning off wifi on my device, allowed the lib to connect to my device over usb and everything worked fine.
mikemimik commentedon Dec 10, 2016
Potentially unrelated:
eseidelGoogle commentedon Dec 12, 2016
There may be something we can do to detect this kind of device connection via libimobiledevice and either support it or explicitly say we don't. @danrubel
xster commentedon Feb 8, 2017
We may have already fixed it with #6111
1- New computer
2- Followed https://flutter.io/setup/ mostly
3- flutter create an app
4- flutter run on physical device
No hot reload.
5- Do suggested fix
6- flutter run again
Everything works.
Please reopen issue if it's still reproducible after
flutter upgrade.rxlabz commentedon Feb 21, 2017
I don't know if it's reproductible elsewhere, but after upgrading flutter, I still can't run app on my iOS 10.2.1 device ( it works with simulator ) if WIFI is activated.
Here my
flutter doctordiagnostic :When I
flutter run -d RXMiniPad -v, the logs are ending by :The complete logs are here
eseidelGoogle commentedon Feb 21, 2017
Thanks @rxlabz, that's helpful. I'm sure @cbracken will be interested to see this. I worry this is going to get lost at the end of this closed-bug. Would you be willing to put that into a new bug instead and we can be sure to track/fix it for you? https://github.com/flutter/flutter/issues/new
cbracken commentedon Feb 21, 2017
#8308 now fixed.
github-actions commentedon Sep 5, 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.