Friday, June 1, 2012

iPhone App Crashes at Admob SDK

I download the Admob SDK for iPhone, and then followed the instructions in the README file. After that, during testing, I found that the app always crashed at the following line:

  adMobAd = [AdMobView requestAdWithDelegate:self]; // start a new ad request
 
After some troubleshooting, the reason is because I am using the iPhone 3.0 SDK (and targeting the 3.0 SDK in my build), and the instructions in the README file will not work when targeting the 3.0 SDK. Specifically, when the README file mentions about the following files:
  1. libAdMobDevice.a
  2. libAdMobSimulator.a
These files don't work when targeting the 3.0 SDK. Instead, use these files from the "extras" folder in the Admob SDK download:
  1. libAdMobDevice3_0.a
  2. libAdMobSimulator.a3_0.a

No comments:

Post a Comment