Flutter installed but failed to start-up on real IOS device - ios

Flutter failed to start-up on real IOS device (not emulator), its working fine on the IOS emulator but when I connect my device its installed but fails to launch without printing any message on flutter application log.
Launching lib/main.dart on XXXX in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: XXXXX
Running Xcode build...
└─Compiling, linking and signing... 10.7s
Xcode build done. 20.1s
Installing and launching...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.15.4-pre.262, on Mac OS X 10.14.6 18G3020, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.1)
[✓] Connected device (1 available)
• No issues found!
could you please help!

There was an issue on Flutter repository as mentioned by #amer rawashdeh.
iOS 13.4 is now available, please update your iOS device and Xcode to v11.4 to keep your project newly working.
If you are on Flutter stable channel you need also to apply this guide to keep you project working with v11.4 Xcode

It seems the problem with ISO version 13.3.1 only
check it out:
https://github.com/flutter/flutter/issues/49504#issuecomment-581554697
The application was working on IOS emulator version 13.3

Related

Firebase not connecting to iOS app even though google info plist file attached

My flutter app is crashing when I connect it to firebase and try to use it. It is only happening for this app(other apps are connecting fine). I am not sure why? Any suggestions would be greatly appreciated.I followed several tutorials and all of them did the same.
I have registered the app :
Provided bundle identifier
Attached the info-plist file
Flutter doctor :
[✓] Flutter (Channel unknown, 2.0.0, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-IN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed
instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (2 available)
Flutter run :
Running Xcode build...
└─Compiling, linking and signing... 30.6s
Xcode build done. 76.0s
Lost connection to device.
Activating Dart DevTools... 4.0s
looks like you haven't installed flutter correctly.
check https://docs.flutter.dev/get-started/install/macos

Flutter deployment error when testing on physical device: : errSecInternalComponent

I am trying to test my flutter application on my iPad, and iPhone, and I have tried everything that I've read from forums.
It will run on an emulator, but not a physical device.
I have tried:
Cleaning and rebuilding.
Restarting my computer.
Updating all of the software on both my computer and the devices.
Creating a unique bundle id.
Choosing different teams for signing.
Changing iOS development target.
Changing the bundle id to my email.
I'm just not sure what to fix at this point.
this is the output of flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.19.0-4.0.pre.108, on Mac OS X 10.15.5 19F101, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.45.1)
[✓] Connected device (1 available)
• No issues found!
There is something up with Xcode and my computer, because I downgraded to Xcode 11.3 and it worked.

Flutter - iOS Simulator "not supported devices connected"

For some reason, iOS Simulator stopped working. I can open iOS Simulator, but Android Studio not recognizes it. I've already tried to run via terminal, but it says not supported devices connected.
When I run flutter doctor it returns:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.12.6 16G2136, locale pt-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 9.2)
✗ Flutter requires a minimum Xcode version of 11.0.0.
Download the latest version or update via the Mac App Store.
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.43.2)
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
Since I'm on a Macbook 2011, I won't be able to upgrade Xcode. Is it possible to downgrade Flutter and Xcode to an older stable version? Would this solve the problem?
Thanks
If Android Studio does not recognize ios simulator even though you can separately open simulator on your Mac, you have to add command line tool on Xcode.
open Xcode then go to Xcode > preferences > select Locations tab. Then select Xcode version from the drop-down menu.
Open ios simulator again. Then Android Studio will recognize your device.

Flutter app is not running on real iOS device

I have a mobile app in Flutter, it works fine on Android and iOS simulators as well as real devices (except only real iPads with iOS 12.0 and above)
The problem is with running the app in iPad - after the launch I see a white screen for 5 seconds, than a black screen for 3 seconds and that's the finish. The app is not running further.
It even does not show a launching screen.
I am testing in Firebase Test Lab and I have done flutter upgrade before every build of product.
And this is my flutter doctor:
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.6 17G65, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[!] Android Studio (not installed)
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
Do you have any ideas what could it be?
Currently, there is an open bug about crashes that occurs on iPhones with the memory of 1GB or lower on most iOS 12. I suggest to upgrade your Flutter version to the latest. As of this writing, the latest version is 2.10.3 in stable channel.

Flutter stuck on Building Dart code after doing flutter build ios

I'm trying to build an archive by doing flutter build ios but I encounter a problem on Starting Xcode build
$ flutter build ios
Building com.example.example for the device (ios-release)...
Automatically signing iOS for device deployment using specified
development team in Xcode project: XXXXXX
Running pod install...
Starting Xcode build...
├─Building Dart code...
I already build an archive one (last week) and it was working. Maybe this is due to flutter upgrade ?
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14.1 18B75, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK
28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.29.1)
That's an issue that was fixed very recently and the fix should already be available in the master channel.
flutter channel master
flutter doctor
You can also try dev channel, but I'm not sure if it landed there already.
The fix will of course be included in the next beta channel, but a beta release just came out last week, so it will probably take a while to the next.
See also https://github.com/flutter/flutter/issues/24139

Resources