-
Notifications
You must be signed in to change notification settings - Fork 29k
Description
Building our Flutter app will hang about 20% of the time using the following command:
flutter build ios --release --no-codesign -t lib/main.dart
Android builds do not exhibit this behavior.
The last output we see is something like:
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building ws.flea.Fleaflicker for device (ios-release)...
Each build is executed from an identical clean environment.
Steps to Reproduce
Behavior is not reproducible every time. The current workaround is to retry the build (in a clean environment) which eventually succeeds.
Our build script is not much more complex than this (adapted from here):
git clone https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
flutter channel stable
flutter doctor
flutter build ios --release --no-codesign
I'd be happy to share the codebase and access to our continuous deployment tool (Microsoft AppCenter) with Flutter devs.
+ flutter doctor
Downloading Material fonts... 0.5s
Downloading android-arm-profile/darwin-x64 tools... 0.3s
Downloading android-arm-release/darwin-x64 tools... 0.2s
Downloading android-arm64-profile/darwin-x64 tools... 0.3s
Downloading android-arm64-release/darwin-x64 tools... 0.3s
Downloading android-x86 tools... 1.0s
Downloading android-x64 tools... 1.1s
Downloading android-arm tools... 0.5s
Downloading android-arm-profile tools... 0.3s
Downloading android-arm-release tools... 0.3s
Downloading android-arm64 tools... 0.5s
Downloading android-arm64-profile tools... 0.4s
Downloading android-arm64-release tools... 0.3s
Downloading ios tools... 2.5s
Downloading ios-profile tools... 1.5s
Downloading ios-release tools... 1.1s
Downloading Gradle Wrapper... 0.0s
Downloading package sky_engine... 0.1s
Downloading common tools... 0.5s
Downloading common tools... 0.5s
Downloading darwin-x64 tools... 1.6s
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132, locale en)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✗] iOS tools - develop for iOS devices
✗ 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.
We've observed this behavior since first using Flutter with v1.2.1. We only use the stable channel.
Dart package dependencies we've used since observing this behavior:
shared_preferences
protobuf
http
intl
dynamic_theme
timeago
event_bus
firebase_admob
(Possibly the same issue as described and closed in #28415. cc @eseidelGoogle)