7.5 C
London
Monday, January 1, 2024

Flutter app is crashing on iOS 17 or extra with Google Signal In package deal


Whereas utilizing googleSignIn.signIn() methodology on my manufacturing scheme of iOS the app crashes. This began to occur after I had up to date to Xcode 15 and this crash occurs solely on iOS 17.

It really works on stage scheme however doesn’t work on manufacturing scheme.

Exception log:

flutter: The next PlatformException was thrown Most important :: PlatformDispatcher:
flutter: PlatformException(google_sign_in, UIViewController is lacking its preliminary trait assortment populated
flutter: throughout initialization. It is a critical bug, possible brought on by accessing properties or strategies on
flutter: the view controller earlier than calling a UIViewController initializer. View controller:
flutter: <SFAuthenticationViewController: 0x7fdd551c6a00>, NSInternalInconsistencyException, null)
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      GoogleSignInApi.signIn (package deal:google_sign_in_ios/src/messages.g.dart:237:7)
flutter: <asynchronous suspension>
flutter: #1      GoogleSignInIOS._signInUserDataFromChannelData (package deal:google_sign_in_ios/google_sign_in_ios.dart:99:3)
flutter: <asynchronous suspension>
flutter: #2      GoogleSignIn._callMethod (package deal:google_sign_in/google_sign_in.dart:278:30)
flutter: <asynchronous suspension>

flutter physician log:

[✓] Flutter (Channel secure, 3.16.5, on macOS 14.2.1 23C71 darwin-arm64, locale en-IN)
    • Flutter model 3.16.5 on channel secure at /Customers/urvesh/Work/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (12 days in the past), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart model 3.2.3
    • DevTools model 2.28.4

[✓] Android toolchain - develop for Android gadgets (Android SDK model 34.0.0)
    • Android SDK at /Customers/urvesh/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Functions/Android Studio.app/Contents/jbr/Contents/House/bin/java
    • Java model OpenJDK Runtime Setting (construct 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
    • Xcode at /Functions/Xcode.app/Contents/Developer
    • Construct 15C65
    • CocoaPods model 1.14.3

[✓] Android Studio (model 2022.3)
    • Android Studio at /Functions/Android Studio.app/Contents
    • Flutter plugin may be put in from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin may be put in from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java model OpenJDK Runtime Setting (construct 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (model 1.85.1)
    • VS Code at /Functions/Visible Studio Code.app/Contents
    • Flutter extension model 3.80.0

[✓] Linked system (1 obtainable)
    • iPhone 15 Professional Max (cell) • 4D4630D7-AE9D-4246-833B-DCC1D6D3A17B • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)

[✓] Community assets
    • All anticipated community assets can be found.

I attempted replace google_sign_in package deal which required flutter improve however that too didn’t work so downgrade again to previous flutter model 3.13.9.

Checked GoogleService-Information.plist for each prod & stage however the entire variable/key-value are appropriate

Latest news
Related news

LEAVE A REPLY

Please enter your comment!
Please enter your name here