2012-07-30 93 views
0

我使用谷歌加分享sdk张贴到谷歌加。但它给了我下面的链接错误:谷歌加sdk链接器错误ios

Undefined symbols for architecture armv7: 
    "_kGTMOAuth2WebViewFailed", referenced from: 
     -[GTMOAuth2ViewControllerTouch webView:didFailLoadWithError:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewKey", referenced from: 
     -[GTMOAuth2ViewControllerTouch notifyWithName:webView:kind:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMHTTPFetcherStatusDomain", referenced from: 
     -[GTLService objectFetcher:finishedWithData:error:] in GTLService.o 
     -[GTMHTTPFetcher connection:didReceiveData:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connectionDidFinishLoading:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher isRetryError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher shouldRetryNowForStatus:error:] in GTMHTTPFetcher.o 
     -[GTMOAuth2Authentication beginTokenFetchWithDelegate:didFinishSelector:] in GTMOAuth2Authentication.o 
     -[GTMOAuth2SignIn handleCallbackReached] in GTMOAuth2SignIn.o 
     ... 
    "_kGTMHTTPFetcherErrorChallengeKey", referenced from: 
     -[GTMHTTPFetcher connection:didReceiveAuthenticationChallenge:] in GTMHTTPFetcher.o 
    "_kGTMOAuth2FetchTypeUserInfo", referenced from: 
     -[GTMOAuth2SignIn fetchGoogleUserInfo] in GTMOAuth2SignIn.o 
    "_kGTMHTTPFetcherStartedNotification", referenced from: 
     -[GTMHTTPFetcher beginFetchMayDelay:mayAuthorize:] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherRetryDelayStoppedNotification", referenced from: 
     -[GTMHTTPFetcher destroyRetryTimer] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherErrorDomain", referenced from: 
     -[GTMHTTPFetcher failToBeginFetchWithError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher backgroundFetchExpired] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connection:didReceiveAuthenticationChallenge:] in GTMHTTPFetcher.o 
    "_kGTMOAuth2FetchTypeRefresh", referenced from: 
     -[GTMOAuth2Authentication beginTokenFetchWithDelegate:didFinishSelector:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2RefreshTokenChanged", referenced from: 
     -[GTMOAuth2Authentication setKeysForResponseDictionary:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2UserSignedIn", referenced from: 
     -[GTMOAuth2SignIn handleCallbackReached] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2FetchTypeToken", referenced from: 

请帮我。

Thanx提前。

+0

http://stackoverflow.com/questions/19658205/googleplus-with-cocoapods-linking-error/19734379#19734379 – jakenberg 2013-11-07 18:33:24

回答

1

您需要将libGooglePlusUniversal.a和开源的“Google Toolbox for Mac文件”链接到您的项目中。

这可以通过按Project > Add to project或将文件直接拖到XCode项目中来完成。