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