I am developing an iOS 7 app that integrates the Google Maps SDK for iOS.
When testing the app on both iOS devices and emulator it works well.
After submitting the app to the store, when I try to access the part that contains the map it crashes. The phone log shows me this error
-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance 0x17da2490 <Error>:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance 0x17da2490'"
I don't know what I'm doing wrong.
With the Google maps SDK, 'unrecognized selector' often occurs if you haven't included the -ObjC
linker flag.
Could it be that you've included -ObjC
in the debug build settings (which you might be using when running it from XCode), but it's missing in the release build settings (which it would use when you build to submit to the App Store)?