Skip to content

GoogleSignIn crash #8154

Closed
Closed
@Montura

Description

@Montura

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.4 (12D4e)
  • Firebase SDK version: 6.34.0 (the same behavior on 8.0.0)
  • Installation method: Zip file
  • Firebase Component: Auth

[REQUIRED] Step 2: Describe the problem

iPad Air (3rd gen) running iOS 14.0.1

  1. App works fine when sign in with basic google account.
  2. App crashes when sign in with google workspace account.

Assertion failure in +[UIAlertAction _actionWithTitle:descriptiveText:image:style:handler:shouldDismissHandler:], UIAlertAction.m:42
2021-05-25 17:49:53.950251+0300 GoogleSignIn[16264:9133478] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Actions added to UIAlertController of style UIAlertActionStyleCancel must have a title when running in UIUserInterfaceIdiomPad'

Full backtrace is here (https://github.com/Montura/GoogleSignInDemo/blob/main/lldb_bt_all_log.txt)

P.S. It works fine on iOS-simulator

Steps to reproduce:

Login with credentials. There is a simple demo with Firebase 6.34.0 (https://github.com/Montura/GoogleSignInDemo)

The same problem was discussed here (#6406)

Relevant Code:

// AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [FIRConfiguration.sharedInstance setLoggerLevel:FIRLoggerLevelWarning];
    [FIRApp configure];
    
    [FIRAnalytics setAnalyticsCollectionEnabled:true];

    GIDSignIn * gidSignIn = [GIDSignIn sharedInstance];
    gidSignIn.clientID = [FIRApp defaultApp].options.clientID;
    gidSignIn.delegate = self;
    
    // Override point for customization after application launch.
    return YES;
}

// ViewController.m
- (void)buttonPressed:(UIButton *)button {
    [GIDSignIn sharedInstance].presentingViewController = self;
    [[GIDSignIn sharedInstance] signIn];
}

[OPTIONAL] Step 3: The expected workflow

  1. To get an alert message when sign in with google workspace account
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoogleSignInapi: authzipIssues related to binary distribution (zip file)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions