Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
09/12/12 03:11 PM (13 years ago)

Xcode Error: Use of undeclared identifier 'ADBanner...

Hi All, Today Apple released the iOS 6/Xcode 4.5GM and when I tried to build my BT2.0 app on iOS 6, it spits out an error: http://jworldhosting.com/Uploads/Images/32468789.png Does anyone know how to fix this error? Thanks, Jake
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
09/12/12 03:24 PM (13 years ago)
Could be the build settings, try building for 3.0
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/12/12 04:15 PM (13 years ago)
add this #import <iAd/iAd.h> to the .h file where the error is at the top where the rest are
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
09/12/12 04:56 PM (13 years ago)
Why does that fix it? Thanks
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/12/12 05:05 PM (13 years ago)
You are he second person to ask e that. Don't know if right but here's my logic from what I understand plenty of muddling around with the twitter and other frameworks. It calls for the Adbanner thingy in Xcode prior to 4.5 I think the code did a good job of searching in it's files to find the the file ADBannerview. The new x code doesnt seem to do this so we have to give a full path for the file, It get's even more complicated AdBannerview.h doesn't get accessed directly it's got to go through iAd.h if you open that up you will see that then imports adbannerview.h . Thus we have to add that to BTview controller. and give the full path which is iAd.framework/headers/iAd.h -----> <iAd/iAd.h> PS i found this out through tinkering and assumptions so it might not be the right reason but it works. We'll have to alert David to this so he can update the control panel downloader/compiler
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
09/12/12 05:22 PM (13 years ago)
It worked, but now I am getting "Bad_Access": http://jworldhosting.com/Uploads/Images/34987489.png
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/12/12 11:38 PM (13 years ago)
If the app comiled with no errors it is unlikely that the ADBANNER issue is the cause. A bad access error will normally occur when their is a fault with a method, a typo usually. Do what you did again keeping an eye on the error log, I had this trying to integrate twitter and it worked out I had put a comma in a method on a button click. Once you know where the error occurs check the code wording.
 
RickB
Lost but trying
Profile
Posts: 8
Reg: Jun 17, 2011
Sunnyvale, CA
9,580
like
10/05/12 01:56 PM (13 years ago)
Thanks for the suggestion Kittsy. That (<iAd/iAd.h>) fixed our issue!
 

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.