谷歌地图iPhone异常 [英] google map on iphone exception
问题描述
我正在尝试添加谷歌地图到我的iphone应用程序,我按照谷歌在这里说的
https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios
我做了他们所有的事情说和unformat幸运,我有六个错误时,建立我的应用程序,这些是:
架构i386的未定义符号:
_objc_setProperty_nonatomic,引用自:
- GoogleMaps(ProtocolBuffers.o)中的[GMSx_PBGeneratedMessage setExtensionRegistry:]
_NSURLIsExcludedFromBackupKey,引用自:
GoogleMaps中的_GMSSetSkipBackupAttribute(GMSUtils.o)
_objc_setProperty_nonatomic_copy,引用自:
- [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)
- GoogleMaps(GMSIconCache.o)中的[GMSIconCache setName:]
_objc_setProperty_atomic,引用自:
- GoogleMaps(GMSDASHConnectionRequest.o)中的[GMSDASHProtobufferRequest setProtobuffer:]
- GoogleMaps(GMSDASHConnection.o)中的[GMSDASHConnection setServerURL:]
- GoogleMaps(GMSVectorModifierMapTileService.o)中的[GMSVectorModifierMapTileService setTileFilter:]
- GoogleMaps中的[GMSx_GTMHTTPFetcher setMutableRequest:](GTMHTTPFetcher.o )
- GoogleMaps(GTMHTTPFetcher.o)中的[GMSx_GTMHTTPFetcher setCredential:]
- GoogleMaps(GTMHTTPFetcher.o)中的[GMSx_GTMHTTPFetcher setProxyCredential:]:
- GoogleMaps中的[GMSx_GTMHTTPFetcher setPostData:] (GMSDASHConnectionRequest.o)
- [GMSDASHConnection setExperimentIDs:]中的[GMSDASHBlocksRequest setAsyncRequestFailedHandler]:
...
_objc_setProperty_atomic_copy引用自:
- GoogleMaps(GMSDASHConnection.o)
- GoogleMaps(GTMHTTPFetcher.o)中的[GMSx_GTMHTTPFetcher setServiceHost:]
- GoogleMaps(GTMHTTPFetcher.o)中的[GMSx_GTMHTTPFetcher setDownloadPath:]
- [GMSx_GTMHTTPFetcher setTemporaryDownloadPath:]在GoogleMaps(GTMHTTPFetcher.o)中
- [GMSx_GTMHTTPFetcher setComment:]:在GoogleMaps(GTMHTTPFetcher.o)中
- [GMSx_GTMHTTPFetcher setLog:]
...
_OBJC_CLASS _ $ _ UIActivityViewController,引用自:
GoogleMaps中的objc-class-ref(GMSServices.o)
ld:找不到架构i386的符号
clang:error:链接器命令失败,退出代码1(使用-v查看调用)
注意,我的基础sdk是ios 5,我的开发目标是5
解决方案最新版本的SDK 1.5需要最少的iOS 6 - 这可能是你看到这些错误的原因。
如果你必须支持iOS 5,你可以尝试下载一个旧版本: / p>
https://developers.google .com / maps / documentation / ios / releases
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
The latest version 1.5 of the SDK requires a minimum of iOS 6 - this might be why you are seeing those errors.
If you must support iOS 5, you could try downloading one of the older versions:
https://developers.google.com/maps/documentation/ios/releases
这篇关于谷歌地图iPhone异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!