Skip to content

Syncing code takes a long time #49865

@mit-mit

Description

@mit-mit

Steps to Reproduce

  1. flutter create repro
  2. cd repro
  3. Start an iOS Simulator
  4. flutter run

=>

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...

...
Syncing files to device iPhone 11 Pro Max...
 7,356ms (!)

Using a MacBookPro with Flutter 1.12.13+hotfix.7.

Logs

[  +90 ms] Syncing files to device iPhone 11 Pro Max...
[   +1 ms] Scanning asset files
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[  +12 ms] /Users/mit/dev/flutter/bin/cache/dart-sdk/bin/dart
/Users/mit/dev/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/mit/dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter
-Ddart.developer.causal_async_stacks=true --output-dill /var/folders/yn/6j8s1t215278rzzj2f6kn79c00768h/T/flutter_tool.VOIhPI/app.dill --packages
/Users/mit/tmp/repro1/.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[  +13 ms] <- compile package:repro1/main.dart
[ +297 ms] [DEVICE LOG] 2020-01-31 09:42:59.944394+0100  localhost Runner[44375]: (RunningBoardServices) Created Activity ID: 0x9e7335,
Description: didChangeInheritances
[+6272 ms] Updating files
[  +90 ms] DevFS: Sync finished
[        ] Syncing files to device iPhone 11 Pro Max... (completed in 6,691ms, longer than expected)
[   +1 ms] Synced 0.9MB.
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +1 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7ffd3f830020, isolate: {type: @Isolate, fixedId: true,
id: isolates/1770924315133767, name: main.dart$main-1770924315133767, number: 1770924315133767}}]}
[        ] <- accept
[        ] Connected to _flutterView/0x7ffd3f830020.
[   +1 ms] 🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[        ] An Observatory debugger and profiler on iPhone 11 Pro Max is available at: http://127.0.0.1:62107/6c91Ns_CMLM=/
[        ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

Metadata

Metadata

Labels

c: regressionIt was better in the past than it is nowtoolAffects 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