diff --git a/GoogleSignIn/Sources/GIDGoogleUser.m b/GoogleSignIn/Sources/GIDGoogleUser.m index 4291ba38..c1112ea8 100644 --- a/GoogleSignIn/Sources/GIDGoogleUser.m +++ b/GoogleSignIn/Sources/GIDGoogleUser.m @@ -184,11 +184,11 @@ - (OIDAuthState *) authState{ } - (void)addScopes:(NSArray *)scopes -#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST +#if TARGET_OS_IOS || TARGET_OS_MACCATALYST presentingViewController:(UIViewController *)presentingViewController -#elif TARGET_OS_OSX || TARGET_OS_MACCATALYST +#elif TARGET_OS_OSX presentingWindow:(NSWindow *)presentingWindow -#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST +#endif // TARGET_OS_IOS || TARGET_OS_MACCATALYST completion:(nullable void (^)(GIDUserAuth *_Nullable userAuth, NSError *_Nullable error))completion { if (self != GIDSignIn.sharedInstance.currentUser) {