AdMob error

I got this mysterious runtime error below while trying to integrate AdMob into my xcode project.

2013-03-21 22:02:32.646 my_app[41152:c07] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[GADObjectPrivate changeState:]: unrecognized selector sent to instance 0x95945e0’
*** First throw call stack:
(0x19a6012 0x1719e7e 0x1a314bd 0x1995bbc 0x199594e 0x217d2 0x2307e 0x20d87 0x90ce 0x6248c3 0x624323 0x632668 0x621b73 0x172d6b0 0x62d7b3 0x62f264 0x62feb8 0x1e7a53f 0x1e8c014 0x1e7c7d5 0x194caf5 0x194bf44 0x194be1b 0x27ae7e3 0x27ae668 0x66165c 0x2cbd 0x2be5)
libc++abi.dylib: terminate called throwing an exception

It turns out there is a flag to be added… argh…

You can read more from this link, or just add the -ObjC flag like the screenshot shows.

admob_xcode_objc_setting

Keep pressing on!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s