Error using Google Maps in IOS?

China☆狼群 提交于 2019-12-25 04:40:53

问题


I am creating a mapView in iOs, using Google Maps Api.
I did it by referring this link

Document
And I am getting few errors like

Undefined symbols for architecture i386:
"_objc_setProperty_nonatomic", referenced from:
  -[GMSx_PBGeneratedMessage setExtensionRegistry:] in GoogleMaps(ProtocolBuffers.o)  


I am fed up with this, can anybody kindly help with this.


回答1:


I think Kalpesh was on the right track with his comment. Your screenshot shows you as running with the iOS 5.1 simulator, but the current version of the maps iOS SDK requires iOS 6.0 or newer.

My answer which Kalpesh linked to explains this in more detail:

google map on iphone exception

I noticed you commented on that other answer though, so which version of the SDK are you using?




回答2:


The errors you see are linker errors telling you that the symbols are not available for the simulator architecture (i386).

You are not linking a simulator-compatible version of the library (or perhaps you missed the step of adding the library to your project to be linked).

I don't know the Google Maps SDK, but it is possible that it doesn't have a simulator-compatible binary within the library file.



来源:https://stackoverflow.com/questions/20322927/error-using-google-maps-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!