This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Nov 19, 2013 7:05 PM by Artur Novak  
Thierry Leveque Newbie 33 posts since
Aug 26, 2002
Currently Being Moderated

Oct 28, 2013 9:33 PM

Strange warning about AVPlayerItemOutputPushDelegate in imports

Hi,

 

I am currently testing AppCode 2.5.1 to see if I am going to switch to it from xCode. I am a big big fan of IntelliJ for years!

 

But I notice something weird when I opened my first project. It is a very simple project with only 2 view controller.

In the main one, I have a strange warning in my implementation file. It does not prevent the project to build or run and it does not appear in xCode.

 

Look at the screenshot I attached.

 

What is that?

I did a search on Google about this message and found nothing!

 

Thierry

Philip Vasilchenko Newbie 2 posts since
Nov 3, 2013
Currently Being Moderated
Nov 3, 2013 4:14 PM in response to: Thierry Leveque
Re: Strange warning about AVPlayerItemOutputPushDelegate in imports

I have the same issue. And i found a workaround for my case.

 

I have a Protocol:

#import <AVFoundation/AVFoundation.h>
 
@protocol MGGPlayerManagerDelegate <NSObject>
 
@optional
- (void)playerManagerItemDidReachEnd:(AVPlayerItem *)item;
 
@end

 

And if I implement this protocol in one of my ViewControllers, AppCode notice my with this strange warning.

But if I replace #import <AVFoundation/AVFoundation.h> with @class AVPlayerItem; warning dissappear.

Dmitry Semeniouta Newbie 74 posts since
Dec 17, 2012
Currently Being Moderated
Nov 8, 2013 6:55 PM in response to: Philip Vasilchenko
Re: Strange warning about AVPlayerItemOutputPushDelegate in imports

Thierry, Philip, could you please specify what version of Xcode and what SDK version are you using. Former can be found at "Preferences | Xcode" and latter - at "File | Project Settings... | <select the target name in the list on the left> | Base SDK".

Thanks.

Philip Vasilchenko Newbie 2 posts since
Nov 3, 2013
Currently Being Moderated
Nov 8, 2013 8:40 PM in response to: Dmitry Semeniouta
Re: Strange warning about AVPlayerItemOutputPushDelegate in imports

Xcode: 5.0 (5A1413)

Base SDK: Latest (iOS 7.0)

Artur Novak JetBrains 40 posts since
Apr 30, 2013
Currently Being Moderated
Nov 20, 2013 2:34 PM in response to: Philip Vasilchenko
Re: Strange warning about AVPlayerItemOutputPushDelegate in imports

Thierry, Philip, thank you for information, reproduced, new issue is raised: http://youtrack.jetbrains.com/issue/OC-8765

As workaround to disable this warning please unmark 'Not visible class' checkbox in Preferences -> Inspections -> Objective-C -> Classes

More Like This

  • Retrieving data ...