Skip to content

Flutter hangs when building for iOS #28415

Closed

Description

@mikhail-tokarev

iOS builds sporadically hang at executing xcodebuild -list. This happens so for ~20% builds (every 5th build). We've tried building different iOS apps, reinstall Flutter from a scratch (channel Stable), removing $HOME/.pub-cache

Steps to Reproduce

  1. rm $HOME/.pub-cache
  2. git fetch
  3. flutter channel stable
  4. flutter upgrade
  5. cd $HOME/myapp
  6. flutter build ios --debug --no-codesign -v

Logs

[  +47 ms] executing: [/Users/greenhouse/programs/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +53 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/greenhouse/programs/flutter/] git rev-parse --abbrev-ref HEAD
[  +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[   +1 ms] executing: [/Users/greenhouse/programs/flutter/] git ls-remote --get-url origin
[  +12 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter
[        ] executing: [/Users/greenhouse/programs/flutter/] git log -n 1 --pretty=format:%H
[  +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +4 ms] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[        ] executing: [/Users/greenhouse/programs/flutter/] git log -n 1 --pretty=format:%ar
[  +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 3 months ago
[   +1 ms] executing: [/Users/greenhouse/programs/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +25 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.0.0-0-g5391447fa
[ +875 ms] Contents of .packages:
[   +3 ms] # Generated by pub on 2019-02-23 23:46:11.590745.
           analyzer:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/
           args:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/args-1.5.1/lib/
           async:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/
           boolean_selector:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.4/lib/
           charcode:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/
           collection:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/
           convert:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/convert-2.0.2/lib/
           crypto:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/crypto-2.0.6/lib/
           csslib:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/csslib-0.14.6/lib/
           cupertino_icons:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.2/lib/
           file:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/file-5.0.6/lib/
           flutter:file:///Users/greenhouse/programs/flutter/packages/flutter/lib/
           flutter_driver:file:///Users/greenhouse/programs/flutter/packages/flutter_driver/lib/
           flutter_test:file:///Users/greenhouse/programs/flutter/packages/flutter_test/lib/
           front_end:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.9+1/lib/
           fuchsia_remote_debug_protocol:file:///Users/greenhouse/programs/flutter/packages/fuchsia_remote_debug_protocol/lib/
           glob:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/glob-1.1.7/lib/
           html:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/html-0.13.3+3/lib/
           http:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+1/lib/
           http_multi_server:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.0.5/lib/
           http_parser:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.3/lib/
           intl:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/intl-0.15.7/lib/
           io:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/io-0.3.3/lib/
           js:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/
           json_rpc_2:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/json_rpc_2-2.0.9/lib/
           kernel:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/kernel-0.3.9+1/lib/
           logging:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/logging-0.11.3+2/lib/
           matcher:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.3+1/lib/
           meta:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/
           mime:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/mime-0.9.6+2/lib/
           multi_server_socket:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/multi_server_socket-1.0.2/lib/
           node_preamble:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/node_preamble-1.4.4/lib/
           package_config:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/package_config-1.0.5/lib/
           package_resolver:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/package_resolver-1.0.7/lib/
           path:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/path-1.6.2/lib/
           platform:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/platform-2.2.0/lib/
           plugin:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/plugin-0.2.0+3/lib/
           pool:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/pool-1.4.0/lib/
           process:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/process-3.0.9/lib/
           pub_semver:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/pub_semver-1.4.2/lib/
           quiver:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.1/lib/
           shelf:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/shelf-0.7.4/lib/
           shelf_packages_handler:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/shelf_packages_handler-1.0.4/lib/
           shelf_static:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/shelf_static-0.2.8/lib/
           shelf_web_socket:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/shelf_web_socket-0.2.2+4/lib/
           sky_engine:file:///Users/greenhouse/programs/flutter/bin/cache/pkg/sky_engine/lib/
           source_map_stack_trace:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/source_map_stack_trace-1.1.5/lib/
           source_maps:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/source_maps-0.10.8/lib/
           source_span:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/source_span-1.4.1/lib/
           stack_trace:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
           stream_channel:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/stream_channel-1.6.8/lib/
           string_scanner:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.4/lib/
           term_glyph:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.0.1/lib/
           test:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/test-1.5.1+1/lib/
           test_api:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.1/lib/
           test_core:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/test_core-0.2.0+1/lib/
           typed_data:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/
           utf:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/utf-0.9.0+5/lib/
           vector_math:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/
           vm_service_client:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/vm_service_client-0.2.6/lib/
           watcher:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/watcher-0.9.7+10/lib/
           web_socket_channel:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/web_socket_channel-1.0.9/lib/
           yaml:file:///Users/greenhouse/.pub-cache/hosted/pub.dartlang.org/yaml-2.1.15/lib/
           capybara:lib/

[   +3 ms] Contents of pubspec.lock:
[   +7 ms] # Generated by pub
           # See https://www.dartlang.org/tools/pub/glossary#lockfile
           packages:
             analyzer:
               dependency: transitive
               description:
                 name: analyzer
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.34.3"
             args:
               dependency: transitive
               description:
                 name: args
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.5.1"
             async:
               dependency: transitive
               description:
                 name: async
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.8"
             boolean_selector:
               dependency: transitive
               description:
                 name: boolean_selector
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.4"
             charcode:
               dependency: transitive
               description:
                 name: charcode
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.1.2"
             collection:
               dependency: transitive
               description:
                 name: collection
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.14.11"
             convert:
               dependency: transitive
               description:
                 name: convert
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.2"
             crypto:
               dependency: transitive
               description:
                 name: crypto
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.6"
             csslib:
               dependency: transitive
               description:
                 name: csslib
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.14.6"
             cupertino_icons:
               dependency: "direct main"
               description:
                 name: cupertino_icons
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.1.2"
             file:
               dependency: transitive
               description:
                 name: file
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "5.0.6"
             flutter:
               dependency: "direct main"
               description: flutter
               source: sdk
               version: "0.0.0"
             flutter_driver:
               dependency: "direct dev"
               description: flutter
               source: sdk
               version: "0.0.0"
             flutter_test:
               dependency: "direct dev"
               description: flutter
               source: sdk
               version: "0.0.0"
             front_end:
               dependency: transitive
               description:
                 name: front_end
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.1.9+1"
             fuchsia_remote_debug_protocol:
               dependency: transitive
               description: flutter
               source: sdk
               version: "0.0.0"
             glob:
               dependency: transitive
               description:
                 name: glob
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.1.7"
             html:
               dependency: transitive
               description:
                 name: html
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.13.3+3"
             http:
               dependency: transitive
               description:
                 name: http
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.12.0+1"
             http_multi_server:
               dependency: transitive
               description:
                 name: http_multi_server
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.5"
             http_parser:
               dependency: transitive
               description:
                 name: http_parser
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "3.1.3"
             intl:
               dependency: transitive
               description:
                 name: intl
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.15.7"
             io:
               dependency: transitive
               description:
                 name: io
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.3.3"
             js:
               dependency: transitive
               description:
                 name: js
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.6.1+1"
             json_rpc_2:
               dependency: transitive
               description:
                 name: json_rpc_2
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.9"
             kernel:
               dependency: transitive
               description:
                 name: kernel
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.3.9+1"
             logging:
               dependency: transitive
               description:
                 name: logging
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.11.3+2"
             matcher:
               dependency: transitive
               description:
                 name: matcher
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.12.3+1"
             meta:
               dependency: transitive
               description:
                 name: meta
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.1.6"
             mime:
               dependency: transitive
               description:
                 name: mime
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.9.6+2"
             multi_server_socket:
               dependency: transitive
               description:
                 name: multi_server_socket
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.2"
             node_preamble:
               dependency: transitive
               description:
                 name: node_preamble
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.4.4"
             package_config:
               dependency: transitive
               description:
                 name: package_config
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.5"
             package_resolver:
               dependency: transitive
               description:
                 name: package_resolver
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.7"
             path:
               dependency: transitive
               description:
                 name: path
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.6.2"
             platform:
               dependency: transitive
               description:
                 name: platform
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.2.0"
             plugin:
               dependency: transitive
               description:
                 name: plugin
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.2.0+3"
             pool:
               dependency: transitive
               description:
                 name: pool
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.4.0"
             process:
               dependency: transitive
               description:
                 name: process
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "3.0.9"
             pub_semver:
               dependency: transitive
               description:
                 name: pub_semver
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.4.2"
             quiver:
               dependency: transitive
               description:
                 name: quiver
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.1"
             shelf:
               dependency: transitive
               description:
                 name: shelf
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.7.4"
             shelf_packages_handler:
               dependency: transitive
               description:
                 name: shelf_packages_handler
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.4"
             shelf_static:
               dependency: transitive
               description:
                 name: shelf_static
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.2.8"
             shelf_web_socket:
               dependency: transitive
               description:
                 name: shelf_web_socket
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.2.2+4"
             sky_engine:
               dependency: transitive
               description: flutter
               source: sdk
               version: "0.0.99"
             source_map_stack_trace:
               dependency: transitive
               description:
                 name: source_map_stack_trace
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.1.5"
             source_maps:
               dependency: transitive
               description:
                 name: source_maps
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.10.8"
             source_span:
               dependency: transitive
               description:
                 name: source_span
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.4.1"
             stack_trace:
               dependency: transitive
               description:
                 name: stack_trace
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.9.3"
             stream_channel:
               dependency: transitive
               description:
                 name: stream_channel
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.6.8"
             string_scanner:
               dependency: transitive
               description:
                 name: string_scanner
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.4"
             term_glyph:
               dependency: transitive
               description:
                 name: term_glyph
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.1"
             test:
               dependency: "direct dev"
               description:
                 name: test
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.5.1+1"
             test_api:
               dependency: transitive
               description:
                 name: test_api
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.2.1"
             test_core:
               dependency: transitive
               description:
                 name: test_core
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.2.0+1"
             typed_data:
               dependency: transitive
               description:
                 name: typed_data
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.1.6"
             utf:
               dependency: transitive
               description:
                 name: utf
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.9.0+5"
             vector_math:
               dependency: transitive
               description:
                 name: vector_math
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.0.8"
             vm_service_client:
               dependency: transitive
               description:
                 name: vm_service_client
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.2.6"
             watcher:
               dependency: transitive
               description:
                 name: watcher
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "0.9.7+10"
             web_socket_channel:
               dependency: transitive
               description:
                 name: web_socket_channel
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "1.0.9"
             yaml:
               dependency: transitive
               description:
                 name: yaml
                 url: "https://pub.dartlang.org"
               source: hosted
               version: "2.1.15"
           sdks:
             dart: ">=2.1.0-dev.5.0 <3.0.0"

[  +16 ms] executing: /usr/bin/defaults read /Users/greenhouse/tmpfz_8o40x/ios/Runner/Info CFBundleIdentifier
[  +73 ms] Exit code 0 from: /usr/bin/defaults read /Users/greenhouse/tmpfz_8o40x/ios/Runner/Info CFBundleIdentifier
[        ] $(PRODUCT_BUNDLE_IDENTIFIER)
[   +8 ms] Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
[   +4 ms] Building io.codemagic.capybara for device (ios)...
[ +378 ms] Using legacy Xcode build system.
[  +70 ms] executing: [/Users/greenhouse/tmpfz_8o40x/ios/] /usr/bin/xcodebuild -list
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.3 18D42, locale en-US)
    • Flutter version 1.0.0 at /Users/greenhouse/programs/flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/greenhouse/programs/android-sdk-macosx
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/greenhouse/programs/android-sdk-macosx
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode-10.1.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Activity

  1. mikhail-tokarev commented on Feb 24, 2019

    @mikhail-tokarev
    Author

    xcodebuild -list output from successfully passed build

    [   +4 ms] Building io.codemagic.capybara for device (ios)...
    [ +312 ms] Using legacy Xcode build system.
    [ +189 ms] executing: [/Users/greenhouse/tmpcg721k11/ios/] /usr/bin/xcodebuild -list
    [+2730 ms] Exit code 0 from: /usr/bin/xcodebuild -list
    [   +2 ms] Information about project "Runner":
                   Targets:
                       Runner
    
                   Build Configurations:
                       Debug
                       Release
    
                   If no build configuration is specified and -scheme is not passed then "Release" is used.
    
                   Schemes:
                       Runner
                       Runner
    

    all Xcode Schemes are shared

  2. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Feb 24, 2019
  3. added
    platform-iosiOS applications specifically
    t: xcode"xcodebuild" on iOS and general Xcode project management
    on Feb 25, 2019
  4. added this to the milestone on Feb 25, 2019
  5. nstrelow commented on Feb 27, 2019

    @nstrelow
    Contributor

    This is very badly effecting codemagic.io builds to the point we have to retry building tons of times.

    Can this be prioritized in any way?

  6. nayanbhana commented on Mar 1, 2019

    @nayanbhana

    Please prioritise this. Thank you

  7. M1chaelTran commented on Mar 1, 2019

    @M1chaelTran

    +1

  8. eseidelGoogle commented on Mar 4, 2019

    @eseidelGoogle
    Contributor

    Sounds like this is affecting a lot of users. @xster @jonahwilliams or @cbracken are the right folks to talk with.

  9. jonahwilliams commented on Mar 4, 2019

    @jonahwilliams
    Contributor

    I don't know why /usr/bin/xcodebuild -list would be flaky. Presumably it would either fail if something is misconfigured, or succeed. Baring a real treatment of the underlying cause, we could add timeout/retry logic around that call which should reduce some of the flakiness.

    If you're experiencing this bug, it would helpful to know which version of flutter and xcode you are using.

  10. self-assigned this
    on Mar 4, 2019
  11. mikhail-tokarev commented on Mar 4, 2019

    @mikhail-tokarev
    Author

    the issue reproduces for stable & master channels and Xcode 10.1:

    Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter
    Framework • revision 8661d8aecd (3 weeks ago) • 2019-02-14 19:19:53 -0800
    Engine • revision 3757390fa4
    Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
    
    Flutter 1.2.3-pre.5 • channel master • https://github.com/flutter/flutter
    Framework • revision b7711d0f9b (10 days ago) • 2019-03-03 05:15:28 -0500
    Engine • revision a28329cb91
    Tools • Dart 2.2.0 (build 2.2.0-dev.2.1 c92d5ca288)
    
  12. xster commented on Mar 5, 2019

    @xster
    Member

    Is anyone experiencing this running in a Flutter/iOS project folder that isn't in a tmp directory?

  13. 25 remaining items

  14. Hixie commented on May 23, 2019

    @Hixie
    Contributor

    @kentcb We're reluctant to cherry-pick this onto stable because we don't really fully understand exactly what fixed it and what the cause was. If you know exactly which commit to flutter/flutter fixes this for you, you could create your own branch locally and cherry-pick the fix onto that branch then ship from that.

  15. andriivachasov commented on Jul 1, 2019

    @andriivachasov

    Hi!
    I am facing the same issue using Bitrise.
    flutter build ios --release hangs from time to time with the following output:

    $ flutter "build" "ios" "--release" "-v"
    [  +50 ms] executing: [/Users/vagrant/flutter-sdk/flutter/] git log -n 1 --pretty=format:%H
    [  +46 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
    [        ] bc7bc940836f1f834699625426795fd6f07c18ec
    [        ] executing: [/Users/vagrant/flutter-sdk/flutter/] git describe --match v*.*.* --first-parent --long --tags
    [  +11 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
    [        ] v1.6.3-0-gbc7bc9408
    [  +20 ms] executing: [/Users/vagrant/flutter-sdk/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
    [   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
    [        ] origin/beta
    [        ] executing: [/Users/vagrant/flutter-sdk/flutter/] git ls-remote --get-url origin
    [   +9 ms] Exit code 0 from: git ls-remote --get-url origin
    [        ] https://github.com/flutter/flutter.git
    [  +68 ms] executing: [/Users/vagrant/flutter-sdk/flutter/] git rev-parse --abbrev-ref HEAD
    [   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
    [        ] beta
    [  +83 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
    [   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [ +140 ms] Found plugin shared_preferences at /Users/vagrant/flutter-sdk/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3/
    [  +87 ms] Found plugin shared_preferences at /Users/vagrant/flutter-sdk/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3/
    [ +182 ms] executing: /usr/bin/defaults read /Users/vagrant/git/ios/Runner/Info CFBundleIdentifier
    [  +63 ms] Exit code 0 from: /usr/bin/defaults read /Users/vagrant/git/ios/Runner/Info CFBundleIdentifier
    [        ] $(PRODUCT_BUNDLE_IDENTIFIER)
    [  +17 ms] Building com.infongen.b2b for device (ios-release)...
    [  +60 ms] Using legacy Xcode build system.
    [  +17 ms] executing: [/Users/vagrant/git/ios/] /usr/bin/xcodebuild -list
    [+2088 ms] Information about project "Runner":
                   Targets:
                       Runner
                   Build Configurations:
                       Debug
                       Release
                       Profile
                   If no build configuration is specified and -scheme is not passed then "Release" is used.
                   Schemes:
                       Runner
    [   +6 ms] executing: [/Users/vagrant/git/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/vagrant/git/ios/Runner.xcodeproj -target Runner -showBuildSettings
    

    flutter doctor output:

    $ flutter "doctor"
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, v1.6.3, on Mac OS X 10.14.4 18E226, locale en-US)
    [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    [!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
        ✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
            brew update
            brew install --HEAD usbmuxd
            brew link usbmuxd
            brew install --HEAD libimobiledevice
            brew install ideviceinstaller
        ✗ ios-deploy not installed. To install:
            brew install ios-deploy
    [!] Android Studio (not installed)
    [!] Connected device
        ! No devices available
    ! Doctor found issues in 4 categories. 
    

    This happens with two different projects without any specific build configurations.
    We also tried the most recent stable version of flutter - 1.5.4-hotfix.2, the build gets stuck as well.

  16. orischwartz commented on Jul 11, 2019

    @orischwartz
    Contributor

    I continue to see this behavior on latest stable, Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132. Roughly 25% of unsigned iOS builds will hang. The same codebase does not hang during Android builds.

    Command used: flutter build ios --release --no-codesign -t lib/main.dart

  17. eseidelGoogle commented on Jul 11, 2019

    @eseidelGoogle
    Contributor

    Would you be willing to open a new but @orischwartz? This one got closed, but it sounds like you have a serious issue we should start again from the top at addressing.

  18. fresswolf commented on Aug 2, 2019

    @fresswolf

    Not sure if related but I'm observing a hang in xcodebuild of 8 or more minutes without any console output when running on azure pipelines (macOS-10.14 vm). After the wait it actually builds. In my local environment there's no such hang, but the build takes equally long in total. So it seems that in my build environment the console logs are just held back for a long time somehow.
    I'm using v1.7.8+hotfix.4

  19. willvlad commented on Aug 10, 2019

    @willvlad

    Experiencing codemagic build timeout on ios - fails after ~50 mins of building with a timeout error

  20. jonsamwell commented on Aug 16, 2019

    @jonsamwell

    @fresswolf I am experiencing the same thing on AzureDevops although it just hangs and never completes. Cancelling the build and restarting it usually fixes it.

  21. eseidelGoogle commented on Aug 16, 2019

    @eseidelGoogle
    Contributor

    @fresswolf @willvlad @jonsamwell if you don't believe your issue is already covered by #35988 would you please open new bugs so we can get them fixed? Thanks!

    FYI @zanderso

  22. jonsamwell commented on Aug 16, 2019

    @jonsamwell

    @eseidelGoogle Yep #35988 looks like what I am experiencing.

  23. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 30, 2020
  24. github-actions commented on Aug 7, 2021

    @github-actions

    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.

  25. locked as resolved and limited conversation to collaborators on Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

customer: productplatform-iosiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects 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