When I run flutter build IOS gets stuck in the middle of process
Whenever I run flutter build IOS, it seems to work fine, however when it gets to the point of "Building Dart Code", it just gets stuck there forever. I was however been able to run flutter build apk successfully before this.
This is the flutter doctor -v output:
[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.13.6 17G65, locale en-GB) • Flutter version 0.11.3 at /Users/../flutter • Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800 • Engine revision 5646e86a6f • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/../Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java • Java version Java(TM) SE Runtime Environment (build 1.8.0_191-b12) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.0, Build version 10A255 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 30.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] Android Studio • Android Studio at /Applications/Android/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. ✗ Android Studio not found at /Applications/Android/Contents • Try updating or re-installing Android Studio. [✓] VS Code (version 1.24.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [✓] Connected device (1 available) • .. iPhone • 77afb908fc6c490d3fca62cdde9a74ab4e45b4f0 • ios • iOS 11.4.1 ! Doctor found issues in 1 category.
I will also post where exactly gets stuck:
-MacBook-Pro:flutterLoginApp-master4OK ..$ flutter build ios Building Login for device (ios-release)... Automatically signing iOS for device deployment using specified development team in Xcode project: ... Starting Xcode build... ├─Building Dart code... 1.6s //and just gets stuck here forever ...
Current beta version(0.11.3) is not working and gets stuck when building the release version on ios. The fix for now is downgrade your flutter version or change to master branch while the beta version is stuck.
You can do this using
flutter channel master and then
flutter upgrade on your terminal.
Flutter hangs when building for iOS · Issue #28415 · flutter/flutter , We've tried building different iOS apps, reinstall Flutter from a scratch possibility is that there are other xcode/build processes still running Unable to run flutter build ios --release, stuck on building for Xcode, have tried piping to build.log as suggested in other threads, does not work either. flutter run --release to my iphone has the same issue. Without building for ios --release I'm getting a blank white screen upon upload to Testflight.
I have switched to master channel and run: flutter build ios --release and all started to work fantastically fantastic.
Flutter run hangs on "Running XCode build" · Issue #48963 · flutter , I am unable to build for iOS. flutter run --debug always hangs on "Running XCode build". This is the last output when I ran flutter --verbose run If anything, it made matters even worse. Perhaps it is also worth noting that vast majority of the builds that get stuck on the first run of flutter build ios successfully complete on second try after the first process is killed.
According to the solution posted here, https://github.com/flutter/flutter/issues/24139, you can redirect the output to a file with something like
> build.log to fix this issue.
flutter run --release > build.log
Flutter hangs in xcodebuild -showBuildSettings when building for , 1.6s Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter stuartmorgan changed the title Flutter hangs when building for iOS [flutter_tool] Kill a timing-out process before trying to drain its streams #40159. Same here, when I try to run flutter with --release flag, it gets stuck and never finishes. [ ] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14.1 18B75, locale en-BR) [ ] Android toolchain - develop for Android devices (Android SDK 28.0.2) [ ] iOS toolchain - develop for iOS devices (Xcode 10.1)
Flutter build on macOS hangs intermittently, I have a build script that builds a flutter app for me on macOS using a bash script. The build hangs sometimes on various ios build steps. -showBuildSettings`) although all the processes for `xcodebuild` had been completed. If a build gets stuck before `Running Xcode build`, the last command is One thing I have found out is when the device is connected and I run flutter run it shows blank screen. Then when I do a hot restart (and rebuild state), after pressing "R". The app launches I feel it is something to do with the state re building. But on Simulator I don't even have to do a hot restart, it works fine each time.
Flutter for iOS developers, Learn how to apply iOS developer knowledge when building Flutter apps. already makes a number of adaptations in the framework for you when running on iOS. AppBar( title: Text("Sample App"), ), body: Center(child: Text(textToShow)), times when you might be processing a large amount of data and your UI hangs. Doctor summary (to see all details, run flutter doctor -v): [ ] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14 18A391, locale en-BR) [ ] Android toolchain - develop for Android devices (Android SDK 28.0.3) [!] iOS toolchain - develop for iOS devices (Xcode 10.1) Verify that all connected devices have been paired with this computer in Xcode.
Flutter + Dart, or how to quickly build a mobile app without losing , Flutter is a mobile app UI SDK by Google. it's deployed on an Android or iOS phone so it looks native on both? commonData.initialize() to run before the UI even gets drawn is quite trivial – it's the errorColor, but as a person that has had his toe stuck in the UI/UX field, Poznaj Digital Product Center. Android Studio, for example, provides a Run > Run… menu option, as well as a triangular green run button icon on the project page. You can compile to release mode for a specific target with flutter build <target>. For a list of supported targets, use flutter help build. For more information, see the docs on releasing iOS and Android apps. Profile