You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"aspect_hook" blocks are not being called for me for methods (or dynamic swift functions). If I use a comparable implementation such as this, it works for public methods as expected.
It seems the issue lies partly in the aspect_isCompatibleBlockSignature function... if the method being intercepted is a dynamic swift function, there is a mismatch around line 210 in .m:
if (signaturesMatch) {
For loop, the condition for signaturesMatch = NO is not compatible with a dynamic Swift function.
}
commenting out this loop allows a dynamic Swift function to work correctly.
If it is an objective-C method, the mismatch occurs due to the blockSignature's numberOfArguments being larger than the methodSignature.
I am still trying to figure out what all this means, and if I do I will attempt a solution. Otherwise some help would be great because I really want to use it.
The text was updated successfully, but these errors were encountered:
Morkrom
changed the title
Written Methods and Function blocks not called
Written methods and function blocks not called
Feb 11, 2015
"aspect_hook" blocks are not being called for me for methods (or dynamic swift functions). If I use a comparable implementation such as this, it works for public methods as expected.
It seems the issue lies partly in the aspect_isCompatibleBlockSignature function... if the method being intercepted is a dynamic swift function, there is a mismatch around line 210 in .m:
if (signaturesMatch) {
For loop, the condition for signaturesMatch = NO is not compatible with a dynamic Swift function.
}
commenting out this loop allows a dynamic Swift function to work correctly.
If it is an objective-C method, the mismatch occurs due to the blockSignature's numberOfArguments being larger than the methodSignature.
I am still trying to figure out what all this means, and if I do I will attempt a solution. Otherwise some help would be great because I really want to use it.
The text was updated successfully, but these errors were encountered: