invertase / react-native-apple-authentication

A React Native library providing support for Apple Authentication on iOS and Android.
Other
1.42k stars 223 forks source link

Compiler warnings #37

Open mikehardy opened 4 years ago

mikehardy commented 4 years ago

Compiler warnings aren't the first thing I go to fix, but with no outstanding module-specific bugs (the "logout causes login process" bug is upstream) this is the only significant issue I see with the library

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:27:67: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

@property(nonatomic, strong, nullable) void (^completion)(NSError *, NSDictionary *);
  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:27:83: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

@property(nonatomic, strong, nullable) void (^completion)(NSError *, NSDictionary *);
                                                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:4: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                                                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:54: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
   ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:75: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                                     ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:43: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                                                          ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:131: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                          ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:31:78: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (void)performRequestsForAuthorizationController:(ASAuthorizationController *)authorizationController;
                                                                                                                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:31:52: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (void)performRequestsForAuthorizationController:(ASAuthorizationController *)authorizationController;
                                                                             ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:86:4: 'ASAuthorizationAppleIDRequest' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  (ASAuthorizationAppleIDRequest *) appleIdRequest
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:43:23: @available does not guard availability here; use if (@available) instead [-Wunsupported-availability-guard]

      @"isSupported": @available(iOS 13.0, *) ? @(YES) : @(NO),
  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:44:35: @available does not guard availability here; use if (@available) instead [-Wunsupported-availability-guard]

      @"isSignUpButtonSupported": @available(iOS 13.2, *) ? @(YES) : @(NO),
                      ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:53:19: 'ASAuthorizationAppleIDProviderCredentialRevokedNotification' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

             name:ASAuthorizationAppleIDProviderCredentialRevokedNotification
                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:62:22: 'ASAuthorizationAppleIDProviderCredentialRevokedNotification' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

                name:ASAuthorizationAppleIDProviderCredentialRevokedNotification
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:74:3: 'ASAuthorizationAppleIDProvider' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationAppleIDProvider *appleIdProvider = [[ASAuthorizationAppleIDProvider alloc] init];
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:74:55: 'ASAuthorizationAppleIDProvider' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationAppleIDProvider *appleIdProvider = [[ASAuthorizationAppleIDProvider alloc] init];
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:75:26: 'ASAuthorizationAppleIDProviderCredentialState' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  id completionBlock = ^(ASAuthorizationAppleIDProviderCredentialState credentialState, NSError *_Nullable error) {
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:90:3: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationController *authorizationController = [
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthModule.m:91:8: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

      [ASAuthorizationController alloc] initWithAuthorizationRequests:@[
  ^~~~~~~~~~~~~~~~~~~~~~~~~

▸ Compiling RNAppleAuthButtonViewManager.m

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonView.h:21:36: 'ASAuthorizationAppleIDButton' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

@interface RNAppleAuthButtonView : ASAuthorizationAppleIDButton
       ^~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:40:73: 'ASAuthorizationAppleIDButtonTypeSignIn' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeSignIn authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhite];
           ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:40:137: 'ASAuthorizationAppleIDButtonStyleWhite' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeSignIn authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhite];
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:59:73: 'ASAuthorizationAppleIDButtonTypeContinue' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeContinue authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhite];
                                                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:59:139: 'ASAuthorizationAppleIDButtonStyleWhite' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeContinue authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhite];
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:98:73: 'ASAuthorizationAppleIDButtonTypeSignIn' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeSignIn authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhiteOutline];
                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:98:137: 'ASAuthorizationAppleIDButtonStyleWhiteOutline' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeSignIn authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhiteOutline];
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:117:73: 'ASAuthorizationAppleIDButtonTypeContinue' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeContinue authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhiteOutline];
                                                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:117:139: 'ASAuthorizationAppleIDButtonStyleWhiteOutline' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeContinue authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleWhiteOutline];
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:155:73: 'ASAuthorizationAppleIDButtonTypeSignIn' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeSignIn authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleBlack];
                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:155:137: 'ASAuthorizationAppleIDButtonStyleBlack' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeSignIn authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleBlack];
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:174:73: 'ASAuthorizationAppleIDButtonTypeContinue' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeContinue authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleBlack];
                                                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonViewManager.m:174:139: 'ASAuthorizationAppleIDButtonStyleBlack' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return [[RNAppleAuthButtonView alloc] initWithAuthorizationButtonType:ASAuthorizationAppleIDButtonTypeContinue authorizationButtonStyle:ASAuthorizationAppleIDButtonStyleBlack];
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

▸ Compiling RNAppleAuthButtonView.m

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonView.h:21:36: 'ASAuthorizationAppleIDButton' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

@interface RNAppleAuthButtonView : ASAuthorizationAppleIDButton
                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonView.m:22:50: 'ASAuthorizationAppleIDButtonType' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (instancetype)initWithAuthorizationButtonType:(ASAuthorizationAppleIDButtonType)type authorizationButtonStyle:(ASAuthorizationAppleIDButtonStyle)style {
           ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthButtonView.m:22:114: 'ASAuthorizationAppleIDButtonStyle' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (instancetype)initWithAuthorizationButtonType:(ASAuthorizationAppleIDButtonType)type authorizationButtonStyle:(ASAuthorizationAppleIDButtonStyle)style {
^

▸ Compiling RNAppleAuthASAuthorizationDelegates.m

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:27:67: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

@property(nonatomic, strong, nullable) void (^completion)(NSError *, NSDictionary *);
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:27:83: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

@property(nonatomic, strong, nullable) void (^completion)(NSError *, NSDictionary *);
                                                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:4: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                                                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:54: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
   ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:75: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                                     ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:43: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                                                          ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:29:131: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (instancetype)initWithCompletion:(void (^)(NSError *error, NSDictionary *authorizationCredential))completion andNonce:(NSString *)nonce;
                                          ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:31:78: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

- (void)performRequestsForAuthorizationController:(ASAuthorizationController *)authorizationController;
                                                                                                                                  ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.h:31:52: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (void)performRequestsForAuthorizationController:(ASAuthorizationController *)authorizationController;
                                                                             ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:33:71: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (ASPresentationAnchor)presentationAnchorForAuthorizationController:(ASAuthorizationController *)controller {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:39:34: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithAuthorization:(ASAuthorization *)authorization {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:39:103: 'ASAuthorization' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithAuthorization:(ASAuthorization *)authorization {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:46:34: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithError:(NSError *)error {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:55:52: 'ASAuthorizationController' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (void)performRequestsForAuthorizationController:(ASAuthorizationController *)authorizationController {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:63:57: 'ASAuthorizationAppleIDCredential' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

- (NSDictionary *)buildDictionaryFromAppleIdCredential:(ASAuthorizationAppleIDCredential *)appleIdCredential {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:41:3: 'ASAuthorizationAppleIDCredential' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationAppleIDCredential *appleIdCredential = authorization.credential;
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RNAppleAuthASAuthorizationDelegates.m:48:9: format string is not a string literal (potentially insecure) [-Wformat-security]

  NSLog(error.localizedDescription);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

▸ Compiling RCTConvert+ASAuthorizationAppleIDRequest.m

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.h:23:4: 'ASAuthorizationAppleIDRequest' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

+ (ASAuthorizationAppleIDRequest *)appIdRequestFromDictionary:(NSDictionary *)requestOptions;
        ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:22:4: 'ASAuthorizationAppleIDRequest' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

+ (ASAuthorizationAppleIDRequest *)appIdRequestFromDictionary:(NSDictionary *)requestOptions {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:53:4: 'ASAuthorizationOpenIDOperation' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

+ (ASAuthorizationOpenIDOperation)authorizationOperationForInteger:(NSNumber *)operationInteger {
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:83:22: 'ASAuthorizationAppleIDRequest' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

RCT_CUSTOM_CONVERTER(ASAuthorizationAppleIDRequest *, ASAuthorizationAppleIDRequest, [self appIdRequestFromDictionary:[self NSDictionary:json]]);
^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:23:3: 'ASAuthorizationAppleIDProvider' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationAppleIDProvider *appleIdProvider = [[ASAuthorizationAppleIDProvider alloc] init];
                                               ^

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:23:55: 'ASAuthorizationAppleIDProvider' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationAppleIDProvider *appleIdProvider = [[ASAuthorizationAppleIDProvider alloc] init];
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:24:3: 'ASAuthorizationAppleIDRequest' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  ASAuthorizationAppleIDRequest *appleIdRequest = [appleIdProvider createRequest];
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:55:12: 'ASAuthorizationOperationImplicit' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

    return ASAuthorizationOperationImplicit;
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:57:12: 'ASAuthorizationOperationLogin' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

    return ASAuthorizationOperationLogin;
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:59:12: 'ASAuthorizationOperationRefresh' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

    return ASAuthorizationOperationRefresh;
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:61:12: 'ASAuthorizationOperationLogout' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

    return ASAuthorizationOperationLogout;
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:65:10: 'ASAuthorizationOperationImplicit' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

  return ASAuthorizationOperationImplicit;
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:73:39: 'ASAuthorizationScopeEmail' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

      [scopesArrayConverted addObject:ASAuthorizationScopeEmail];
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚠️  /Users/mike/work/Kullki/ksocialscore/packages/public-app/node_modules/@invertase/react-native-apple-authentication/ios/RNAppleAuthentication/RCTConvert+ASAuthorizationAppleIDRequest.m:75:39: 'ASAuthorizationScopeFullName' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]

      [scopesArrayConverted addObject:ASAuthorizationScopeFullName];
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
jadhavrahul10 commented 4 years ago

@mikehardy i was also facing same problem after installing react-native-apple-authentication. in my case i was having two Xcode.app in my system 1)Xcode with version 10 2)Xcode with version 11.XX ( which required for apple authentication and IOS 13+ )

While running through command line react-native run-ios --scheme "DemoStageEnv" i was facing same issue. its because of my command line path for xcode is set to Xcode i.e version 10 and it's creating problem while build I have solved this problem by changing command line path for xcode to 11.XX

below link will be help full for me Link

Steps :- 1) Get current xcode path xcode-select --print-path 2) change it new one sudo xcode-select -switch <path/to/>Xcode.app

and react-native run-ios will work fine

Thanks

CoSNaYe commented 4 years ago

I'm quite surprised that @jadhavrahul10's comment has marked as off-topic. I got the same compiler errors (not using warnings here as they actually made the build fail). After some searches, I saw this issue but seems no solution.

And after some time of futile efforts, I somehow went back to this post again. Find there's a tiny hidden comment. Moreover, after upgrading the Xcode, it did solve the issue.

Sorry that I'm not an experienced developer on React-native, so I'm not 100% sure if that is the right solution. Just leave this message in case anyone has the same problem, you can give it a try.

mikehardy commented 4 years ago

Strange - I'm not sure why that was off topic. I can say this though: if you develop for iOS, keep your Xcode up to date. It's a baseline expectation (even though it is a monstrously large download...)