jrswizzle
jrswizzle copied to clipboard
Block-based methods are not thread safe
Swizzling with a block requires using a single NSInvocation instance to call the original method. But if you need to set arguments on that invocation, you might be stepping on other threads doing the same thing.
A possible fix is to copy the invocation before modifying it.