1

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.

Delta
  • 13
  • 5
  • this may help you http://stackoverflow.com/questions/15203991/ios-googlemaps-sdk-animatetocameraposition-animation-finished-handler – Bhupesh Aug 29 '14 at 10:39
  • Might be a duplicate of this: http://stackoverflow.com/questions/22019776/googlemaps-basic-ios-demo-app-crash-unrecognized-selector-sent-to-instance –  Aug 29 '14 at 10:45
  • i saw those posts, but my app crashes only after its published to the app store. From xcode it works on both device and emulator – Delta Aug 29 '14 at 10:54
  • Can you post the code that crashes, and a call stack for the crash? – Saxon Druce Aug 29 '14 at 11:10
  • Always build and test your app with the release build settings before submitting. – Hot Licks Aug 29 '14 at 12:04

1 Answers1

4

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)?

Saxon Druce
  • 17,406
  • 5
  • 50
  • 71
  • thank you, i did't included the -ObjC to the release build settings, only to the debug build settings. – Delta Aug 29 '14 at 11:19