Skip to content

Block-based methods are not thread safe #21

@JetForMe

Description

@JetForMe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions