-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance

你说的曾经没有我的故事 提交于 2019-12-11 02:43:51

问题


Hi All i have implement the google maps sdk on my application and i am getting an error on this particular line mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera]; Can any one help me to find a solution


回答1:


Please mention which version of iOS you are using and did you setted delegate method for MAPview.

Please check the below link, may be helps you, all the best

GoogleMaps basic iOS demo app crash - unrecognized selector sent to instance




回答2:


This error occurs if you remove the -ObjC linker flag from your target. Once you put this flag back the application will not crash.

If you have removed this flag because you are using parse SDK as well and its not allowing you to compile your project with too many linking errors, the workaround is that you have to remove the Facebook related parse sdks from your project.

Thus the bottom line is if you want to use both Google Map and Parse SDK you have to remove the Parse's Facebook SDK and -ObjC linker flag must be set for Other Linker Flags.




回答3:


Developing an application with the Google Maps SDK for iOS requires the following:

Xcode 4.5 or later. iOS SDK 6.0 or later.



来源:https://stackoverflow.com/questions/24572311/gmsmapview-animatetocameraposition-unrecognized-selector-sent-to-instance

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