Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Error with AspectImplementation #55

Open
xareelee opened this issue Nov 24, 2013 · 1 comment
Open

Error with AspectImplementation #55

xareelee opened this issue Nov 24, 2013 · 1 comment
Labels

Comments

@xareelee
Copy link

Although I've declared a protocol by @aspect() macro, but I will get null when invoking objc_getProtocol() in the @aspectimplementation macro, and get a run time error when using @aspectimplementation.

*** Assertion failure in BOOL ext_loadSpecialProtocol(Protocol *__strong, void (^__strong)(__unsafe_unretained Class))()

After I change the line in the aspectimplementation macro

interface NAME ## _AspectContainer : NSObject {} \

to this line with an explicit protocol declaration

interface NAME ## _AspectContainer : NSObject <NAME> {} \

everything is fine.

So I think the compiler might not compiler or include the non-using protocol.

@jspahrsummers
Copy link
Owner

EXTAspect only exists on the experimental branch, meaning it's not really supported or production-ready.

I appreciate your bug report, but I also expect that there are many more. 😉

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

No branches or pull requests

2 participants