Matto888
Code is Art
Profile
Posts: 8
Reg: Jun 28, 2014
Los Angeles, CA
10,580
10/04/14 08:23 PM (9 years ago)

'BT_viewcontroller const__strong' to parameter of incompatible type 'id'

Getting this warning while trying to compile on new update of xcode. Downloaded previously working app from buzztouch, did not get this warning before, now I am getting it with new update with iPhone 6 release. What does this mean?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/05/14 06:08 AM (9 years ago)
I'm still trying to figure this out too. But, bottom line is, it's a warning, and not an error, so for the moment, don't kill yourself over it; your app will compile and work as designed. Cheers! -- Smug
 
Derval
Aspiring developer
Profile
Posts: 364
Reg: Sep 20, 2012
Milan
17,240
like
10/17/14 02:59 AM (9 years ago)
I'm getting the same one (see below) but kinda of ignoring it for the same reason although someone is giving me a hard time for not getting it resolved ;-) Sending 'BT_viewController *const __strong' to parameter of incompatible type 'id<NSFileManagerDelegate>'
 
Tenicc
Aspiring developer
Profile
Posts: 2
Reg: Oct 09, 2014
Kuala Lumpur
3,570
like
10/17/14 07:58 PM (9 years ago)
Hi... I had the same issue... but I managed to removed the warning by changing the BT_viewController.h from @interface BT_viewController : UIViewController <UIAlertViewDelegate, ADBannerViewDelegate, MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate>{ to... @interface BT_viewController : UIViewController <UIAlertViewDelegate, NSFileManagerDelegate, MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate>{ And the warning disappeared.
 
Derval
Aspiring developer
Profile
Posts: 364
Reg: Sep 20, 2012
Milan
17,240
like
10/18/14 12:25 AM (9 years ago)
You're absolutely right @Tenicc... that did it! so it was line 41 in the BT_viewController.h file that needed to be changed from ADBannerVIewDelegate to NSFileManagerDelegate. Thanks so much! Good stuff! :-))
 
Derval
Aspiring developer
Profile
Posts: 364
Reg: Sep 20, 2012
Milan
17,240
like
10/18/14 12:41 AM (9 years ago)
Apparently the AD stuff is old and outdated so it needs to be replaced... according to the powers that be :-)
 
Tenicc
Aspiring developer
Profile
Posts: 2
Reg: Oct 09, 2014
Kuala Lumpur
3,570
like
10/19/14 07:42 AM (9 years ago)
Hi Derval, Am glad it worked for you too. I got the reference after googling the error message. Oh, the banner is to be replaced, I see. Thanks for the tip. Its good to know. :)
 

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.