Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9069291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:23:30+00:00 2026-06-16T17:23:30+00:00

I am trying to use the Google AdMob SDK, and with all the information

  • 0

I am trying to use the Google AdMob SDK, and with all the information out there and how simple it seems to be, I am actually having some trouble getting going.

  1. I am following this tutorial, but on my own project (not the sample one). I am using the latest iOS SDK (6.2.1). All seems fine, but when I add the “-ObjC” flag to my Other Code Signing Flags, it throws an error:

    (null): codesign: invalid option — O

    Now, this only happens when I try and debug the app on my jailbroken device (iOS 6.0.1, 4th generation iPod). I accepted this error since I did not buy a developer license, but I continue having trouble even with the simulator.

  2. I now add back the -ObjC flag to the Other Code Signing Flags, and I compile and build with iOS 6.0 iPhone simuilator. All is fine, and it runs (no code yet). I then add #import "GADBannerView.h" to my header, and also add a property (@property (nonatomic) GADBannerView *bannerView;) as well as @synthesize it. Then I add this code to my .m file:

     - (void) viewDidLoad
    {
        [super viewDidLoad];
    
        // ad setup
        self.bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
        self.bannerView.adUnitID = @"********"; // <- I have my correct one here.
        self.bannerView.rootViewController = self;
        [self.view addSubview:self.bannerView];
        [self.bannerView loadRequest:[GADRequest request]];
    }
    

    Add it manages to throw an exception and crash on the last line there ([self.bannerView loadRequest:[GADRequest request]];). The full message:

    2012-12-25 23:33:00.392 NFL Scores[39359:c07] -[GADObjectPrivate changeState:]: unrecognized selector sent to instance 0xa1a2540
    2012-12-25 23:33:00.394 NFL Scores[39359:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADObjectPrivate changeState:]: unrecognized selector sent to instance 0xa1a2540'
    *** First throw call stack:
    (0x1b32012 0x16e5e7e 0x1bbd4bd 0x1b21bbc 0x1b2194e 0x1f792 0x2103e 0x1ed47 0x37ec 0x937817 0x937882 0x937b2a 0x94eef5 0x94efdb 0x94f286 0x94f381 0x94feab 0x94ffc9 0x950055 0xa553ab 0x8a692d 0x16f96b0 0x7001fc0 0x6ff633c 0x7001eaf 0x9458cd 0x88e1a6 0x88ccbf 0x88cbd9 0x88be34 0x88bc6e 0x88ca29 0x88f922 0x939fec 0x886bc4 0x886dbf 0x886f55 0x88ff67 0x853fcc 0x854fab 0x866315 0x86724b 0x858cf8 0x197cdf9 0x197cad0 0x1aa7bf5 0x1aa7962 0x1ad8bb6 0x1ad7f44 0x1ad7e1b 0x8547da 0x85665c 0x2a5d 0x2985 0x1)
    libc++abi.dylib: terminate called throwing an exception
    

    Why is this? Everything that I have seen suggests to add the -all_load and/or -ObjC flag, but neither seem to work. Thanks in advance.

EDIT: For whatever reason, I am on Xcode 4.5.2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T17:23:32+00:00Added an answer on June 16, 2026 at 5:23 pm

    You need to add the -ObjC flag to the Other Linker Flags section of your Build Settings, not the Other Code Signing Flags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Google drive API to carry out simple tasks like
I'm having trouble with Internet Explorer when trying to use Google Maps. It works
HI all, i'm trying to use google chart API to make some charts in
I'm trying to use Google's SDK Tutorial for Android using Eclipse. I was able
I am trying to use new Google Cloud Messaging system but I have some
I'trying to use Google APIs Client Library for Java to get information about user's
I am trying to use Google graph API (image) to show some data in
I am trying to use Google's Sketchup C++ SDK (latest version) to export a
I'm having a not very fun time trying to use Google Fonts Api within
Thank you in advance for all your help. I'm trying to use google maps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.