iPhoneアプリケーションにGoogleマップを追加しようとしています.Googleがここで言うことに従います https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios
私は彼らが言ったことをすべてやったが、残念なことに、アプリケーションをビルドするときに6つのエラーがありました。それらは次のとおりです。
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)
注、私のベース SDK は ios 5 で、私の開発ターゲットは 5 です