GTMSessionFetcherService linker error while trying to create my xcode project

I use Cocoapods to install the latest GPG and used the latest Xcode 7.3 and iOS SDK 9.3, but I was unable to build my project and get stuck with these 5 linker errors that I could not solve:

"_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from: objc-class-ref in gpg(GIPNetworkImage.o) objc-class-ref in libSignIn_external.a(GIDSignIn.o) "_GSDK_kGTMSessionFetcherStatusDomain", referenced from: -[GSDK_GTMOAuth2SignIn authCodeObtained] in libGTMOAuth2_external_external.a(GTMOAuth2SignIn.o) "_GSDK_GTMSessionFetcherAssertValidSelector", referenced from: -[GSDK_GTMOAuth2Authentication authorizeRequest:delegate:didFinishSelector:] in libGTMOAuth2_external_external.a(GTMOAuth2Authentication.o) -[GSDK_GTMOAuth2SignIn initWithAuthentication:authorizationURL:delegate:webRequestSelector:finishedSelector:] in libGTMOAuth2_external_external.a(GTMOAuth2SignIn.o) "_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from: objc-class-ref in libGTMOAuth2_internal_external.a(GTMOAuth2SignInInternal.o) objc-class-ref in libGTMOAuth2_external_external.a(GTMOAuth2Authentication.o) objc-class-ref in libGTMOAuth2_external_external.a(GTMOAuth2SignIn.o) objc-class-ref in gpg(GPGClearcutLogger.o) objc-class-ref in libSignIn_external.a(GIDSignIn.o) objc-class-ref in libSignIn_external.a(GIDRuntimeConfigFetcher.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

I even tried adding the GTMSessionFetcherService source to my project, but can't fix it. Any idea?

thanks

+5
source share
4 answers

I ran into very similar build issues trying to integrate Google login. The non-Cocoapods instructions mention adding GoogleSignIn.framework to your project, but they don’t tell you that you need to link the rest of the frameworks in the login SDK:

 GoogleAppUtilities.framework GoogleAuthUtilities.framework GoogleNetworkingUtilities.framework GoogleSignIn.framework GoogleSymbolUtilities.framework GoogleUtilities.framework 
+7
source

All you have to do is add GoogleOpenSource.framework from the Google+ iOS SDK libs

then

add GoogleOpenSource to robovm.xml

Finally, make sure GoogleSignIn robopod is present

+2
source

Add libsqlite3.dylib, libz.tbd and AddressBook.framework to the Related Structures and Libraries. This solved my problem. I also copied this framework.

 GoogleAppUtilities.framework GoogleAuthUtilities.framework GoogleNetworkingUtilities.framework GoogleSignIn.framework GoogleSymbolUtilities.framework GoogleUtilities.framework 
0
source

I had the same problem for Xamarin.iOS. To solve the problem, I just updated my Xamarin.Google.iOS.SignIn package to the latest version (4.0.1.1) and updated Xamarin.Build.Download for latests (0.4.2).

Updating these two packages caused the addition of additional packages to my project. I believe that these additional packages that fixed the errors of the native linker that I received (the same exact errors as Yanuar Tanil).

0
source

Source: https://habr.com/ru/post/1246605/


All Articles