GooglePlus with CocoaPods linking error

I added to my pod file

pod 'google-plus-ios-sdk', '1.4.1'


I did

pod update


I imported

#import <GooglePlus/GooglePlus.h>


But if I try

[GPPSignIn sharedInstance].clientID = kClientID; 


I am getting this error from the linker:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GPPSignIn", referenced from:
      objc-class-ref in SDSocialManager.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)



source to share

1 answer

In my experience, linker errors usually do not result in "one solution for all", but I was able to fix this myself by adding ${inherited}

in Other Linker Flags

in the Project Target.

Perhaps without this tag, I did not inherit some of the static libraries that were required GPPSignIn





All Articles