iOS App in flutter crashes during launch trying to configure Crashlytics - ios

I've a few apps connected to my firebase project. Recently one of those apps..an iOS app... crashes while launching on my simulator. The output is:
└─Compiling, linking and signing... 20.3s
Xcode build done. 59.8s
Configuring the default Firebase app...
[Crashlytics] Version 3.14.0 (144)
Configured the default Firebase app __FIRAPP_DEFAULT.
[Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize
Error connecting to the service protocol: failed to connect to http://127.0.0.1:57399/MD_uhGLIBGA=/
The iOS app doesn't have Crashlytics or Fabric installed. So I presume it's something that's changed with firebase. I added a web app to the project which has analytics installed(not Crashlytics). I think it's since then my problem started. Is there a way for my client app to " forget" about the crashlytics service?

Related

Activate Firebase App Check Debug Provider in React Native iOS app?

From the docs:
I have to add this to the AppDelegate.m file:
FIRAppCheckDebugProviderFactory *providerFactory =
[[FIRAppCheckDebugProviderFactory alloc] init];
[FIRAppCheck setAppCheckProviderFactory:providerFactory];
// Use Firebase library to configure APIs
[FIRApp configure];
Managed to do this and to start my react native app.
However:
Launch the app. A local debug token will be logged when the SDK tries to send a request to the backend. For example:
I have no way of accessing the logs produced by the simulator.
In the Terminal window I can only see logs generated by React Native, and when opening the System Log in the iOS simulator this is all I get:
Jul 30 12:11:56 **** syslogd[55934]: --- syslogd restarted ---
Jul 30 12:11:56 **** syslogd[55934]: Configuration Notice:
ASL Module "com.apple.contacts.ContactsAutocomplete" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
I can't run the project from inside Xcode as I get build errors on some of the postbuild steps. I run it using yarn ios which maps to react-native run-ios in package.json
How do I access the printed debug token in order to get App Check working when running my app in a simulator? How do I get the logs the iOS simulator is generating as we normally see in Xcode when running a native app?
Note: I have a lot of experience with native iOS development and with JS development, but this is my first time working on a React Native app (external codebase I am supposed to do some maintenance on).

Firebase Crashlytics setup for flutter on flutter ios

Basically, I want to set up Crashlytics for flutter in the ios application but I don't find any proper docs dedicated to ios in the flutterfire docs and I try different tutorials but nothing works. please guide me !!
after you define your app in firebase console and download the "GoogleService-Info.plist":
you must add it to ios folder in flutter app:
you must add the bellow package to pubspec.yaml file and use it like below link:
dependencies:
firebase_crashlytics: ^2.7.1
https://pub.dev/packages/firebase_crashlytics/example
(This step is optional) After that, you can add the below script to the build phase for
Crashlytics requires you to upload debug symbols.
You can use a run script build phase for Xcode to automatically upload debug symbols post-build. Find the run script here:
https://firebase.google.com/docs/ios/installation-methods?authuser=0
"${PODS_ROOT}/FirebaseCrashlytics/run"
you must enable crashlytics in firebase console:
this works(enables) when you crash manually on the button tap (it means that after you launch your app you must make a crash to send a signal to your crashlytics) after that your crashlytics enables.

Getting Crashes but showing wrong/old Version number in Firebase Crashlytics

Bitcode: No
Firebase Crashlytics: 8.5.0 (Latest)
I integrated the Firebase Crashlytics in my app on version 3.1.8. On the testing device, it reports me correctly. but when I see the report of online users it reporting me crashes but the version is wrong. as you can see in the screenshot
Now I am not able to download dSYMs from app connect because bitcode is not enabled and I cannot enable it due to pod MobileVLCKit and my local machine don't have 3.1.0 (1).
I am confused about how to deal with it.
I have uploaded 2 more versions(3.1.9 and 3.2.0) but it's showing the same results. strangely my dashboard shows the correct version when I open detail its showing wrong

Firebase is not registering for Flutter iOS but successfully reports Crashlytics data

I've set up FlutterFire for my Flutter app, but for some reason, the setup step for iOS seems to be stuck at
Checking if the app has communicated with our servers. You may need to uninstall and reinstall your app.
In addition, my crash-free statistics chart is not showing any data, so I believe it might have something to do with the setup being incomplete. I have integrated the latest versions of firebase_analytics and firebase_crashlytics since my pubspec.yaml file contains the following:
firebase_analytics: "^6.0.0"
firebase_core: "^0.5.0"
firebase_crashlytics: "^0.2.0"
The whole process is up and running for Android, but this is only occurring on iOS. I believe I have correctly configured the GoogleService-Info.plist file since Crashlytics is successfully sending crash reports to the dashboard. dSYMs are also correctly being uploaded. Is there anything I could be missing?

Flutter (iOS) app start and stops with crash

I have developed a Flutter Android app and that is working fine. Now I am working on the iOS side. I have configured Firebase and notification APN etc. When I run the app by attaching the real device the app got installed but it just crashes and closes. There are no logs in the console of Android studio.
It just prints below logs.
Launching lib/main.dart on sign's iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode
project: ABCD7AUXYZ
Running Xcode build...
Xcode build done. 78.0s
Installing and launching...
Where can I find more logs about the crash?
When I build the project using the Xcode (Thanks to #Blasanka & #Kevin Renskers) I was able to find out the issue. Actually I was missing the Admob id in the plist file and the internet permission (thanks to #Stephen J).
thanks you for your time and help.

Resources