Update 12/16/2010: It looks like there is a similar issue when targeting 4.0 devices with the 4.2 SDK... your app will crash immediately if you used Interface Builder to create your ad banner view. Weak-linking the iAd framework and Re-creating the ad banner implementation on the code side of things was the fix. Thanks to this thread by Ray Wenderlich: http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app
---
Hi, I just tried to run my app using iOS 4.2 SDK (final) and targeting iOS 4.0 devices, and even though my app compiles fine, I get this error immediately upon running...
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Invalid content size 'ADBannerContentSizePortrait' passed to
ADAdSizeForBannerContentSize'
...
I tried...
- (void)viewDidLoad {
self.bannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
}
... but no luck, still getting the same crash error. In IB it looks like the only options for "Sizes" are "Portrait, Landscape, or Both" which I guess iOS 4.0 is not a fan of.
Anyone have any suggestions? Thanks a lot.