2012-07-30 119 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項目中來完成。