Meine Flutter -App stürzt nach Firebase AuthIOS

Programmierung für iOS
Anonymous
 Meine Flutter -App stürzt nach Firebase Auth

Post by Anonymous »

Ich arbeite jetzt seit Wochen an diesem Problem und habe noch keine Antwort gefunden. Ich habe festgestellt, dass es das FireBase -Auth ist, nachdem das Token von Google oder Facebook abgerufen hat, was die App ohne Fehler in die Flutter -App stürzt. >

Code: Select all

final FirebaseAuth _auth = FirebaseAuth.instance;
final userCredential = await _auth.signInWithCredential(credential);

< /code>
Xcode -Fehler: < /p>
2025-02-21 21:41:22.596946+0100 Runner[31689:1005256] *** Assertion failure in +[PigeonAuthCredential fromList:], firebase_auth_messages.g.m:372
2025-02-21 21:41:22.643479+0100 Runner[31689:1005256] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
*** First throw call stack:
(
0   CoreFoundation                      0x00007ff8004288ab __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff80004dba3 objc_exception_throw + 48
2   Foundation                          0x00007ff800b870cc _userInfoForFileAndLine + 0
3   Runner                              0x000000010a11f5ce +[PigeonAuthCredential fromList:] + 494
4   Runner                              0x000000010a127a70 -[FirebaseAuthHostApiCodecReader readValueOfType:] + 576
5   Flutter                             0x00000001106f3d35 _ZL9ReadValuePKv + 48
6   Flutter                             0x00000001106f43fe FlutterStandardCodecHelperReadValueOfType + 681
7   Runner                              0x000000010a127f5b -[FirebaseAuthHostApiCodecReader readValueOfType:] + 1835
8   Flutter                             0x00000001106f3d35 _ZL9ReadValuePKv + 48
9   Flutter                             0x00000001106f2212 -[FlutterStandardMessageCodec decode:] + 104
10  Flutter                             0x00000001106ed4fe __48-[FlutterBasicMessageChannel setMessageHandler:]_block_invoke + 61
11  Flutter                             0x00000001100b605e ___ZN7flutter25PlatformMessageHandlerIos21HandlePlatformMessageENSt3_fl10unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE_block_invoke + 94
12  libdispatch.dylib                   0x000000010b472d18 _dispatch_call_block_and_release + 12
13  libdispatch.dylib                   0x000000010b473f5b _dispatch_client_callout + 8
14  libdispatch.dylib                   0x000000010b484d55 _dispatch_main_queue_drain + 1463
15  libdispatch.dylib                   0x000000010b484790 _dispatch_main_queue_callback_4CF + 31
16  CoreFoundation                      0x00007ff800387b1f __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
17  CoreFoundation                      0x00007ff800382436 __CFRunLoopRun + 2482
18  CoreFoundation                      0x00007ff8003816a7 CFRunLoopRunSpecific + 560
19  GraphicsServices                    0x00007ff809cb128a GSEventRunModal + 139
20  UIKitCore                           0x0000000113fbfad3 -[UIApplication _run] + 994
21  UIKitCore                           0x0000000113fc49ef UIApplicationMain + 123
22  libswiftUIKit.dylib                 0x000000010b099c72 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98
23  Runner                              0x000000010a11b868 $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 104
24  Runner                              0x000000010a11b7f7 $s6Runner11AppDelegateC5$mainyyFZ + 39
25  Runner                              0x000000010a11b8e8 main + 24
26  dyld                                0x000000010a3ec2bf start_sim + 10
27  ???                                 0x000000010ffa552e 0x0 + 4563031342
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
CoreSimulator 857.14 - Device: iPhone 14 Pro Max (C2D122CF-E6ED-4DD9-B450-9279D78A0EAC) - Runtime: iOS 16.2 (20C52) - DeviceType: iPhone 14 Pro Max
terminating with uncaught exception of type NSException
< /code>
Und hier ist meine PubSpec -Datei: < /p>
  firebase_core: ^2.18.0
firebase_auth: ^4.6.0
google_sign_in: ^6.2.0
flutter_facebook_auth: ^7.0.0
sign_in_with_apple: ^5.0.0
flutter_secure_storage: ^9.0.0
provider: ^6.1.0
dependency_overrides:
firebase_auth_platform_interface: ^6.13.0
und ich teste dies auf Xcode 14.2 und iPhone 14 Pro Max mit Plattform: iOS, '13 .0 '
Danke fürs Ihre Hilfe. < /p>
Ich habe versucht, mich in der App zu melden Firebase und ich erhalte keinen Fehler, sondern nur eine verlorene Verbindung zum Gerät.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post