Skip undefined protocol silently.#19
Conversation
This can happen when you defines the protocol but does not exist class that implement it.
|
I have multiple app targets. |
|
The build target A and B has linking this class: Only target A has linking a class that implements I can escape crashing BloodMagic with dummy class that implements MyProtocol. Is this a preferred workaround? |
|
Dummy class doesn't sound as a proper workaround, of course. I'll investigate it tomorrow. Seems like we've already had similar issue, please check if it's not the same in your case: #9 (comment) |
|
@kkazuo I think that might've been the issue. But, just to close that topic, could you please modify your pull request so it would be like that: if (!protocol) {
NSLog(@"BloodMagic: Protocol %s hasn't been found. Please check if you include the header with that protocol description in your .m file", protocolName.c_str());
continue;
} |
|
Totally agree with @0xc010d. |
|
I made sample project. And I found another workaround. |
|
Ok.. We might need to do a further investigation of that. @kkazuo thank you for the finding! |
|
Thank you for the discussion! |
|
@kkazuo, finally I've merged this one. Thank you! |
This can happen when you defines the protocol but does not exist class that implement it.