CrossGeeks / GoogleClientPlugin

Google Client Plugin for Xamarin iOS and Android
https://www.pujolsluis.com/google-client-plugin-for-xamarin/
MIT License
89 stars 37 forks source link

Linker error on Azure DevOps build build pipeline. #72

Open johnn82 opened 3 years ago

johnn82 commented 3 years ago

Hi, I'm currently using v2.1.12

Visual Studio 2019 v16.8 Xamarin.iOS 14.4.1.3 XCode 12.2

I'm having some trouble compiling the iOS version of my project. I can compile without any error on my local mac or using my local PC connected to the local mac.

I'm unable to compile on a build pipeline in DevOps. To make it work I needed to add a Xamarin.Google.iOS.SignIn nuget pack reference to my iOS project.

Getting these errors.

`MTOUCH : error MT5214: Native linking failed, undefined symbol: _kGIDSignInErrorDomain. This symbol was referenced by the managed member Google.SignIn.SignIn.SignInErrorDomainKey. Please verify that all the necessary frameworks have been referenced and native libraries linked.

MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: GIDSignInButton. The symbol 'OBJC_CLASS$_GIDSignInButton' could not be found in any of the libraries or frameworks linked with your application.

MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: GIDSignIn. The symbol 'OBJC_CLASS$_GIDSignIn' could not be found in any of the libraries or frameworks linked with your application.

MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: GIDGoogleUser. The symbol 'OBJC_CLASS$_GIDGoogleUser' could not be found in any of the libraries or frameworks linked with your application.

MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: GIDProfileData. The symbol 'OBJC_CLASS$_GIDProfileData' could not be found in any of the libraries or frameworks linked with your application.

MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: GIDAuthentication. The symbol 'OBJC_CLASS$_GIDAuthentication' could not be found in any of the libraries or frameworks linked with your application.