IAd not working on iOS 6

I have an iPhone app with iAd and it works great on iOS 5.1.1. I upgrade my Xcode to 4.5 using the iOS 6 SDK to check my application for compatibility with iOS 6. The only thing that doesn't work right now is the iAd. I'm trying to use a 5.1 SDK simulator, and it works, but not on the iOS 6 simulator. I upgrade my iPhone to iOS 6 to try the device on my own and it doesn't work. I am testing my application on my iPod and my wife iPhone with 5.1.1, and it works, but not on devices with iOS 6. The thing is, I tried, tested and looked for answers to this problem, and nobody seems to has decisions

Can someone help me if you have a solution?

Thanks!

+4
source share
2 answers

iAd and AdWhirl did not approve of some things in iOS 6, mainly because of the new screen sizes.
http://code.google.com/p/adwhirl/issues/detail?id=318

Adding #import <iAd/ADBannerView_Deprecated.h> should help with compilation errors, although this solution is a bit kludgey.

+2
source

I added the following:

 #import <iAd/iAd.h> 

at the top of AdWhirlAdapterIAd.m, and then the errors disappeared.

+1
source

Source: https://habr.com/ru/post/1435414/


All Articles