GooglePlus与CocoaPods链接错误

我添加到我的pod文件

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

我做了一个

 pod update 

我input了

 #import <GooglePlus/GooglePlus.h> 

但是,如果我尝试

 [GPPSignIn sharedInstance].clientID = kClientID; 

我从链接器得到这个错误:

 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) 

在我的经验中,链接器错误通常不会导致“一个解决scheme适合所有人”,但是我可以通过将${inherited}添加到Build Settings(Project Target)中的Other Linker Flags来解决这个问题。

也许,由于没有这个标签,我没有inheritance一些GPPSignIn所需的静态库。

干杯!