-
Notifications
You must be signed in to change notification settings - Fork 26
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
Can't resolve the reference 'Firebase.Auth.AuthCredential #11
Comments
got the same issue |
Release Mode Only |
I get the same error, it goes away when i set the linker behavior to: Don't Link My only issue is that when i do that and try to archive to release i get "xamarin archive error There was an error unzipping the file zip The specified path, file name, or both are too long." |
After investigation I realized that Plugin.FirebaseAuth (2.0.0) references xamarin.firebase.ios.core (>=5.1.3). This is an issue when you have a plugin like (Xamarin.Firebase.iOS.DynamicLinks 4.0.1.1) that depends on xamarin.firebase.ios.core (>= 6.1.0.1). You get a Native linking failed error which can only be resolved by manually installing Xamarin.Firebase.iOS.Auth (6.2.1.2) which doesn't appear to have the reference 'Firebase.Auth.AuthCredential Firebase.Auth.OAuthProvider::GetCredential(System.String,System.String,System.String)' @f-miyu [downgrading in not an option because previous version of dynamic links don't work on ios. Specifically resolving shortlinks's long url] |
I'm facing the same issue for release mode. @RichardSV15 any workaround in the meantime? I manually installed the Xamarin.Firebase.iOS.Auth (6.2.1.2) but that error is still present if I set Include SDKs only when compiling. |
@vhugogarcia yes, the work around is to stick with Plugin.FirebaseAuth (2.0.0) that references xamarin.firebase.ios.core (>=5.1.3)... If you have anything (dynamiclinks, firestore, analytics) that referencea anything higher than (5.1.3) it will not build. If you absolutely need a higher version I recommend downgrading to that lowest point get it compile and build correctly and troubleshoot after that |
@RichardSV15 Thanks for the quick answer. I was running a test and I was able to compile, archive and upload to TestFlight on Apple Store Connect. Using the following configuration:
if you want to set the linker to "SDK only" then, download the fork from https://github.com/xamarindevelopervietnam/Plugin.FirebaseAuth and just remove the references to GetCredentials, if you don't need them. In my case, since I only require Email Auth, I had no issues with the removal. |
When compiling for release for IOS
Can't resolve the reference 'Firebase.Auth.AuthCredential Firebase.Auth.OAuthProvider::GetCredential(System.String,System.String,System.String)', referenced from the method 'Plugin.FirebaseAuth.IAuthCredential Plugin.FirebaseAuth.OAuthProviderWrapper::GetCredential(System.String,System.String,System.String)' in 'Firebase.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
The text was updated successfully, but these errors were encountered: