jspahrsummers / libextobjc

A Cocoa library to extend the Objective-C programming language.
MIT License
4.53k stars 461 forks source link

EXTConcreteProtocol:Model Confirm Protocol Duplicate Symbol #132

Open tangzzz-fan opened 6 years ago

tangzzz-fan commented 6 years ago

Thanks for wanting to contribute to this project!

Unfortunately, it's not really maintained anymore.

Feel free to use it as-is, or fork it and modify as much as you want to suit your needs. However, I can't guarantee that I'll have time/energy to look at new issues and pull requests.

Sorry for the trouble!

Hi, I used EXTConcreteProtocol to extend my protocol. I met a question when I used it. When used liked this

import

@protocol TestProtocol @concrete

@concreteprotocol(TestProtocol)

int main(int argc, const char argv[]) { @autoreleasepool { TestObject object = [TestObject new]; [object buzz]; } return 0; }

it worked well.

======

But when I used in a single application like let TestObject confirm TestProtocol, and I used it on my viewController, then, it cannot be complied success.

Further, I let my viewController confirm TestProtocol, call function buzz in viewDidLoad, it worked.

I found another git repository called ProtocolKit, which call do same work like EXTConcreteProtocol. Maybe I have problem in using protocol.

I create a repository here to describe my question: git@github.com:tangzzz-fan/TGTestProtocol.git

Thanks advanced.