tomgilder / flutter_apple_sign_in

Flutter Plugin for Sign In with Apple
MIT License
160 stars 71 forks source link

Build fails after adding apple_sign_in dependency #24

Open ighidan opened 4 years ago

ighidan commented 4 years ago

Hi,

My app fails to build after adding apple_sign_in: ^0.1.0 dependency. Here is the error list I get. Any idea? Thanks

Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    In file included from /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/AuthorizationControllerDelegate.m:4:
    /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/Converters/CredentialConverter.h:8:51: error: expected a type
    + (NSDictionary*)dictionaryFromAppleIDCredential:(ASAuthorizationAppleIDCredential*)credential API_AVAILABLE(ios(13.0));
                                                      ^
    /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/Converters/CredentialConverter.h:9:40: error: expected a type
    + (NSString*)stringForCredentialState:(ASAuthorizationAppleIDProviderCredentialState)credentialState API_AVAILABLE(ios(13.0));
                                           ^
    /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/AuthorizationControllerDelegate.m:18:34: error: expected a type
    - (void)authorizationController:(ASAuthorizationController *)controller
                                     ^
    /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/AuthorizationControllerDelegate.m:19:34: error: expected a type
       didCompleteWithAuthorization:(ASAuthorization *)authorization API_AVAILABLE(ios(13.0)) {
                                     ^
    /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/AuthorizationControllerDelegate.m:28:34: error: expected a type
    - (void)authorizationController:(ASAuthorizationController *)controller
                                     ^
    /Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/AuthorizationControllerDelegate.m:20:24: error: property 'credential' not found on object of type '__strong id'
        if ([authorization.credential isKindOfClass:[ASAuthorizationAppleIDCredential class]]) {
/Users/ikramy/dev/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/ios/Classes/AuthorizationControllerDelegate.m:21:88: error: property 'credential' not found on object of type '__strong id'
            _completion([CredentialConverter dictionaryFromAppleIDCredential:authorization.credential]);
                                                                                           ^
    7 errors generated.
Could not build the application for the simulator. 
michaelbrinkworth commented 4 years ago

need help with this to

tomgilder commented 4 years ago

Are you using Xcode 11 and the iOS 13 SDK?