Skip to content

Commit da8097b

Browse files
committed
Adds a check for the presence of the internal method to be cautious.
1 parent b8ffec0 commit da8097b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FirebaseAuthUI/FUIAuth.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ + (nullable FUIAuth *)authUIWithAuth:(FIRAuth *)auth {
8989
authUI = [[FUIAuth alloc] initWithAuth:auth];
9090
objc_setAssociatedObject(auth, &kAuthAssociationKey, authUI,
9191
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
92-
auth.additionalFrameworkMarker = kFirebaseAuthUIFrameworkMarker;
92+
if ([auth respondsToSelector:@selector(setAdditionalFrameworkMarker:)]) {
93+
auth.additionalFrameworkMarker = kFirebaseAuthUIFrameworkMarker;
94+
}
9395
}
9496
return authUI;
9597
}

0 commit comments

Comments
 (0)