2013-10-07 219 views
0

我試圖向谷歌地圖添加到我的iPhone應用程序,我關注你谷歌說,在這裏 https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios谷歌地圖

我做了所有他們說什麼,unformatunately,構建我的應用程序時,我有六個錯誤,這些都是:

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

回答

3

的SDK的最新1.5版要求minimu m iOS 6 - 這可能是你看到這些錯誤的原因。

如果你必須支持的iOS 5,你可以嘗試下載舊版本之一:

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

+0

請哪個版本我應該使用? –

+0

@MarcoDinatsoli:我猜1.4的最新版本(如1.4.3)。 –

+0

我試過1.4.3,我有一個異常是(錯誤400,操作無法完成),但是我試圖在真正的machntoich我的應用程序,它的工作原理,我不知道爲什麼在VMware不工作:(請幫助 –