Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
08/20/12 12:41 PM (13 years ago)

use of undeclared identifier 'adbannercontentsizeidentifierportrait'

I am getting the subjected error when testing my apps in the current xcode beta. My project is pointing to 4.3 as alot of people say it needs to be 4.2 or higher. Works perfect on the current official Xcode. Any ideas its the same with ADBannerContentSizeIdentifierLandscape thanks in advance
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/20/12 03:20 PM (13 years ago)
Not sure. I do know that there are oftentimes issues with new releases of Xcode. We're kinda used to it :-) In most cases, when a new Xcode version comes out (sometimes along with a new iOS version), we find things here-n-there that we need to update on the download server to accomodate for differences, deprecated method calls, etc. I would bet that the iAd protocols are different in the Xcode / iOS version you're working with. Different as in Apple made some changes that render some old method calls invalid?
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
08/20/12 03:21 PM (13 years ago)
Go to the top, and make sure you have a #import <iAd/iAd.h> line in the .h file of your error. If you already do just write another post in this thread and I'll see what else I can think of to fix it.
 
rossideas
Aspiring developer
Profile
Posts: 145
Reg: Jul 24, 2011
Albuquerque
1,450
like
10/01/12 05:39 PM (13 years ago)
Thanks theMonster... that fixed it!
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
10/06/12 01:08 PM (13 years ago)
thanks. the "#import <iAd/iAd.h>" part worked!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.