EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 446 forks source link

Sign in with Apple : Can't find variable: ASAuthorizationAppleIDProvider #1491

Open Sauvetonbio opened 4 years ago

Sauvetonbio commented 4 years ago

NS : 6.2.1

Hello,after following all steps and testing new apple sign in feature, here the result.

CONSOLE LOG file:///node_modules\nativescript-plugin-firebase\firebase.js:865:24: 'Error in firebase.login: ReferenceError: Can\134't find variable: ASAuthorizationAppleIDProvider'

Any idea about this? Thank you.

EddyVerbruggen commented 4 years ago

That's odd - which iOS version are you running that on, and which device?

Sauvetonbio commented 4 years ago

Thanks for quick reply. iPhone X - iOS 13.2.2

EddyVerbruggen commented 4 years ago

I'm not sure why on that device this class would not be available. Can you (to make sure) do rm -rf platforms?

Sauvetonbio commented 4 years ago

I already tried Apple Sign-in on the KAYAK app with this device, and it's working well. Also, I made fresh builds, rm -rf platforms .cloud hooks node_modules && npm i && tns cloud run ios.

I use nativescript-vue and cloud builds.

EddyVerbruggen commented 4 years ago

Cloud builds, huh.. I guess that's not building with the latest Xcode then. This feature needs building with the iOS 13 SDK because that's when it was added.

xpediteur commented 4 years ago

NS 6.2.1 i get following error building ios In file included from /Users/ralfborde/FirebaseData/platforms/ios/Pods/AppAuth/Source/iOS/OIDAuthorizationService+IOS.m:21: /Users/ralfborde/FirebaseData/platforms/ios/Pods/AppAuth/Source/iOS/OIDExternalUserAgentCatalyst.h:28:26: error: expected ',' API_AVAILABLE(macCatalyst(13)) API_UNAVAILABLE(ios) ^ 2 errors generated. ** BUILD FAILED ** What can i do there ? THX