firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.64k stars 3.95k forks source link

[Firebase_Atuh]: APP CRASHING on IOS first LOGIN #13379

Open bigssword opened 1 day ago

bigssword commented 1 day ago

Is there an existing issue for this?

Which plugins are affected?

Auth

Which platforms are affected?

iOS

Description

I'm really stressed out because of a bug that crashes only when I first login iOS.

There is no problem at all in my environment, but the app store review keeps having problems and I am getting rejected 20 times for the same reason.

It's hard to test where the bug comes from and it's making me mad.

I can't find any solutions for similar issues.

I'm using the latest version of firebase auth.(5.2.1) And when i pod install, the 11.0.0 firebase version is automatically installed.

""" You guys should assume that there is nothing wrong with my code. I think that is the basic attitude to have in questions and answers as well. The attitude of making the questioner look like a fool makes people afraid to ask questions. If the code is wrong, I will apologize and publish it. """

i didn't have a problem under these settings before. After trying several things, I downgraded the package and added it to the App Store review again. But I'm afraid that the same issue will occur and I can't use the same version of the package for the rest of my life. I need help.


  - BoringSSL-GRPC (0.0.32):
    - BoringSSL-GRPC/Implementation (= 0.0.32)
    - BoringSSL-GRPC/Interface (= 0.0.32)
  - BoringSSL-GRPC/Implementation (0.0.32):
    - BoringSSL-GRPC/Interface (= 0.0.32)
  - BoringSSL-GRPC/Interface (0.0.32)
  - cloud_firestore (4.14.0):
    - Firebase/Firestore (= 10.18.0)
    - firebase_core
    - Flutter
    - nanopb (< 2.30910.0, >= 2.30908.0)

  - firebase_auth (4.16.0):
    - Firebase/Auth (= 10.18.0)
    - firebase_core
    - Flutter

appstore feedback

Guideline 2.1 - Performance

Issue Description

The app still crashed upon the first login during review.

Steps leading to crash:

  1. Launched the app

  2. Typed in the provided demo credentials

  3. Tapped on 'Next'

  4. Then the app crashed only on the first time login

  5. Restarted the app - app was logged in

Error

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: SIGNAL 6 Abort trap: 6 Terminating Process: Runner [17994]

Triggered by Thread: 0

Application Specific Information: abort() called

Last Exception Backtrace: 0 CoreFoundation 0x184d7508c exceptionPreprocess + 164 1 libobjc.A.dylib 0x1820772e4 objc_exception_throw + 88 2 FirebaseFirestoreInternal 0x105b9c128 firebase::firestore::util::ObjcThrowHandler(firebase::firestore::util::ExceptionType, char const, char const, int, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&) + 108 3 FirebaseFirestoreInternal 0x105b9bc24 firebase::firestore::util::Throw(firebase::firestore::util::ExceptionType, char const, char const, int, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&) + 20 4 FirebaseFirestoreInternal 0x105b79090 void firebase::firestore::util::ThrowInvalidArgument<std::1::basic_string<char, std::1::char_traits, std::1::allocator>, unsigned long>(char const*, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&, unsigned long const&) + 48 5 FirebaseFirestoreInternal 0x105b8a73c firebase::firestore::api::DocumentReference::DocumentReference(firebase::firestore::model::ResourcePath, std::1::shared_ptr) + 240 6 FirebaseFirestoreInternal 0x105baf248 firebase::firestore::api::Firestore::GetDocument(std::1::basic_string<char, std::__1::char_traits, std::1::allocator> const&) + 76 7 FirebaseFirestoreInternal 0x105bcfac0 -[FIRFirestore documentWithPath:] + 100 8 Runner 0x104da08e4 0x104ce4000 + 772324 9 Runner 0x104d9cc24 0x104ce4000 + 756772

Reproducing the issue

I don't think we need this kind of stupid stuff.

Firebase Core version

3.4.1

Flutter Version

3.24.1

Relevant Log Output

No response

Flutter dependencies

dependencies:

dev dependencies:

transitive dependencies:

Additional context and comments

No response

ivabra commented 6 hours ago

Hi @bigssword , try pod update Firebase/Auth on iOS folder, it is fixed in 11.2.0. Probable related issue: https://github.com/firebase/firebase-ios-sdk/issues/13470