Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of 'Protocol' must be imported from module 'ObjectiveC.Protocol' before it is required #23

Open
robertoandrade opened this issue Mar 23, 2016 · 2 comments

Comments

@robertoandrade
Copy link

I get the following error when compiling a project that has this library as a dependency:

MAObjCRuntime/RTProtocol.m:79:13: Definition of 'Protocol' must be imported from module 'ObjectiveC.Protocol' before it is required

It seems to only happen with XCode 7.3, running 7.2 side by side compiles and runs just fine. Wondering if something changed in 7.3 or the compiler that causes these issues?

@redent
Copy link

redent commented May 4, 2016

Hit this issue when trying to compile after updating XCode. Any known workaround?

@boscomonkey
Copy link

boscomonkey commented Sep 9, 2016

I imported objc/Protocol.h at the top of RTProtocol.m and it now compiles.

#import <objc/Protocol.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants