Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings #37

Open
mikehardy opened this issue Feb 8, 2020 · 3 comments
Open

Compiler warnings #37

mikehardy opened this issue Feb 8, 2020 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mikehardy
Copy link
Collaborator

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];
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~

@mikehardy mikehardy added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 8, 2020
@jadhavrahul10

This comment has been minimized.

@CoSNaYe
Copy link

CoSNaYe commented Jul 10, 2020

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
Copy link
Collaborator Author

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...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants