1

i am trying to add a google map to my iphone application , i follow what google says here https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios

i did all what they said and unformatunately, i have six errors when building my application, those are :

Undefined symbols for architecture i386:
"_objc_setProperty_nonatomic", referenced from:
      -[GMSx_PBGeneratedMessage setExtensionRegistry:] in GoogleMaps(ProtocolBuffers.o)
  "_NSURLIsExcludedFromBackupKey", referenced from:
      _GMSSetSkipBackupAttribute in GoogleMaps(GMSUtils.o)
  "_objc_setProperty_nonatomic_copy", referenced from:
      -[GMSBlockAnimationDelegate setStartBlock:] in GoogleMaps(GMSCoreAnimation.o)
      -[GMSBlockAnimationDelegate setCompletionBlock:] in GoogleMaps(GMSCoreAnimation.o)
      -[GMSGLTileProvider setAllTilesDeadBlock:] in GoogleMaps(GMSGLTileProvider.o)
      -[GMSUserEvent3Logger setOutputFilter:] in GoogleMaps(GMSUserEvent3Logger.o)
      -[GMSPanoramaLink setPanoramaID:] in GoogleMaps(GMSPanoramaLink.o)
      -[GMSIconCache setName:] in GoogleMaps(GMSIconCache.o)
  "_objc_setProperty_atomic", referenced from:
      -[GMSDASHProtobufferRequest setProtobuffer:] in GoogleMaps(GMSDASHConnectionRequest.o)
      -[GMSDASHConnection setServerURL:] in GoogleMaps(GMSDASHConnection.o)
      -[GMSVectorModifierMapTileService setTileFilter:] in GoogleMaps(GMSVectorModifierMapTileService.o)
      -[GMSx_GTMHTTPFetcher setMutableRequest:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setCredential:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setProxyCredential:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setPostData:] in GoogleMaps(GTMHTTPFetcher.o)
      ...
  "_objc_setProperty_atomic_copy", referenced from:
      -[GMSDASHBlocksRequest setAsyncRequestFailedHandler:] in GoogleMaps(GMSDASHConnectionRequest.o)
      -[GMSDASHConnection setExperimentIDs:] in GoogleMaps(GMSDASHConnection.o)
      -[GMSx_GTMHTTPFetcher setServiceHost:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setDownloadPath:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setTemporaryDownloadPath:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setComment:] in GoogleMaps(GTMHTTPFetcher.o)
      -[GMSx_GTMHTTPFetcher setLog:] in GoogleMaps(GTMHTTPFetcher.o)
      ...
  "_OBJC_CLASS_$_UIActivityViewController", referenced from:
      objc-class-ref in GoogleMaps(GMSServices.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

NOTE, my base sdk is ios 5 and my development target is 5

4

1 回答 1

4

SDK 的最新版本 1.5 至少需要 iOS 6 - 这可能就是您看到这些错误的原因。

如果您必须支持 iOS 5,您可以尝试下载旧版本之一:

https://developers.google.com/maps/documentation/ios/releases

于 2013-10-07T12:40:18.283 回答