Repository navigation
iOS: Blank screen in running my flutter app in release mode #36247
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Currently when running my app either from the terminal through the command flutter run -d "iPhone" --release or directly from xcode in release mode I got blank screen, and when inspecting the logs I can find the following error.
Runner[3296:651656] [VERBOSE-2:engine.cc(116)] Engine run configuration was invalid. Runner[3296:651656] [VERBOSE-2:FlutterEngine.mm(294)] Could not launch engine with configuration.
Kindly find below the output of flutter doctor
- Doctor summary (to see all details, run flutter doctor -v):
- [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.5 18F132, locale en-EG)
- [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
- [!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
- ✗ CocoaPods not installed.
- CocoaPods is used to retrieve the iOS platform side's plugin code that
- responds to your plugin usage on the Dart side.
- Without resolving iOS dependencies with CocoaPods, plugins will not work
- on iOS.
- For more info, see https://flutter.io/platform-plugins
- To install:
- brew install cocoapods
- pod setup
- [✓] Android Studio (version 3.2)
- [✓] Connected device (2 available)
Any help would be appreciated,
thanks in advance :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Activity
hesham91fci commentedon Jul 16, 2019
@jamesderlin any help would be appreciated
Thanks in advance
shinayser commentedon Jul 16, 2019
Check this: #22188 (comment)
juanjoserodrigolazaro commentedon Jul 16, 2019
Same here, any solution? I dont have doctor issues!
hesham91fci commentedon Jul 17, 2019
I tried
flutter build ios --releasethenflutter run -d "iPhone" --releasebut same behavior happens (Blank screen)@shinayser
@zoechi Please any help would be appreciated
leonardop21 commentedon Jul 17, 2019
GoogleService-Info inside the runner/runner folder inserted through x-code, I followed all the recommended steps, even though the application when sent to production gets the white screen when starting.
Flutter clean
flutter build ios --release
Xcode
Product -> Clean
Archive
Upload App Store
But I have the same problem. Any idea what that might be?
dnfield commentedon Jul 17, 2019
Can you try this on the latest stable, and make sure to thoroughly clean your project?
This error normally means that something is off with the AOT blob. It could be that it was built with the wrong version of Dart somehow, or it could be that the build system got confused and isn't giving you the right artifact. 1.2.1 is two stable releases behind the latest stable at this point though,s o it would be good to try on latest stable first.
steelhearts commentedon Jul 18, 2019
I have the same problem
In my case it happened after updating from 1.5.x to 1.7.8 + hotfix.3
I thought that trash was accumulated in the build folder etc.
So I deleted the build folder and the Derived Data folder, but the result did not change
Execution result of Flutter doctor
it worked fine until last week. . .
dnfield commentedon Jul 18, 2019
Another possibility is that the cache is out of sync.
Try removing the bin/cache folder from you flutter checkout. It should automatically regenerate and may fix this.
steelhearts commentedon Jul 26, 2019
Try it in a local environment and it works well.
But the flutter project on CircleCI also has the same problem...
It happens with ipa files output to circleci artifacts. . .
66 remaining items
TheMkrage commentedon Jan 28, 2021
I have this exact same issue. I cannot recreate this issue no matter how I get the app on my device( VSCode, TestFlight, or Xcode). Did you ever solve this @livotov ? I have also created #74843
naoyanickf commentedon Nov 23, 2021
dsp1589 commentedon Jan 3, 2022
OM-Tecnologia commentedon Jun 15, 2022
i'm with the same issue, any permanent solution?
I created a new flutter project (flutter create my_app) and implement firebase push notification, the notifications are working fine, but it show a blank screen.
OM-Tecnologia commentedon Jun 15, 2022
i'm go trying add loading indicator
OM-Tecnologia commentedon Jun 15, 2022
My problem i think was specific, i comment some of the code above, now it works fine.
Dharmeshkatariya commentedon Jul 27, 2023
same isssue
itahirmasood commentedon Jul 28, 2023
I had the same issue while running my app & it was stuck at Blue Screen which was FIXED by adding GoogleService-info.plist in the project. It can be added in xCode or in ios folder.
Please check logs if it's attempting to connect to firebase or has any firebase dependencies. If it does then check if you have added GoogleService-info.plist? You might be missing that.
Edit: You will have to Clean build folder after doing that and build & run the app. Hopefully it will work fine.
3kdeveloper commentedon Nov 8, 2023
hesham91fci Run your app on profile mode then test the whole app manually. or In the debug mode when you run your app, open the terminal, and then start testing your app hopefully you will get an issue Like Incorrect Use of Parent Widget Mostly this issue was caused by Expanded widgets when we used them in the wrong place.
waqaskhanroghani commentedon Mar 25, 2024
I solved the problem.