From 546e46af16117a4040e8f07ecdc1de525144378f Mon Sep 17 00:00:00 2001 From: nrurnru Date: Thu, 29 Feb 2024 14:10:53 +0900 Subject: [PATCH] Check bundle optional for localized string --- GoogleSignIn/Sources/GIDSignInStrings.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GoogleSignIn/Sources/GIDSignInStrings.m b/GoogleSignIn/Sources/GIDSignInStrings.m index 23dc9446..364a1dd5 100644 --- a/GoogleSignIn/Sources/GIDSignInStrings.m +++ b/GoogleSignIn/Sources/GIDSignInStrings.m @@ -31,6 +31,9 @@ @implementation GIDSignInStrings + (nullable NSString *)localizedStringForKey:(NSString *)key text:(NSString *)text { NSBundle *frameworkBundle = [NSBundle gid_frameworkBundle]; + if (frameworkBundle == nil) { + return text; + } return [frameworkBundle localizedStringForKey:key value:text table:kStringsTableName]; }