Skip to content

Commit ac17640

Browse files
authored
[Auth] Fix FIRGameCenterAuthProvider warning on Xcode 13 (#10809)
The method "fetchItemsForIdentityVerificationSignature:" is marked as available only on tvOS 13.5+ in Xcode 13 (tvOS 15 SDK) but was extended to tvOS 13.4.8+ in Xcode 14 (tvOS 16 SDK). Updated the availability check to limit to tvOS 13.5+ when compiling with Xcode 13. #no-changelog
1 parent 317013f commit ac17640

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

FirebaseAuth/Sources/AuthProvider/GameCenter/FIRGameCenterAuthProvider.m

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ + (void)getCredentialWithCompletion:(FIRGameCenterCredentialCallback)completion
5454
}
5555
return;
5656
}
57-
if (@available(iOS 13.5, macOS 10.15.5, macCatalyst 13.5, tvOS 13.4.8, *)) {
57+
if (@available(iOS 13.5, macOS 10.15.5, macCatalyst 13.5,
58+
// Availability of fetchItemsForIdentityVerificationSignature was extended to tvOS 13.4.8 in
59+
// Xcode 14 (from tvOS 13.5 in Xcode 13).
60+
// TODO: Remove this check when we no longer support Xcode 13.
61+
#if defined(__TVOS_16_0)
62+
tvOS 13.4.8,
63+
#else
64+
tvOS 13.5,
65+
#endif
66+
*)) {
5867
[localPlayer fetchItemsForIdentityVerificationSignature:^(
5968
NSURL *_Nullable publicKeyURL, NSData *_Nullable signature,
6069
NSData *_Nullable salt, uint64_t timestamp, NSError *_Nullable error) {

0 commit comments

Comments
 (0)