Description
[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
- App works fine when sign in with basic google account.
- 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];
}