0

我正在使用 google plus share sdk 发布到 google plus。但它给了我以下链接器错误:

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:

请帮我。

提前谢谢。

4

1 回答 1

1

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

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

于 2012-07-30T20:38:10.053 回答