frida / frida-objc-bridge

Objective-C runtime interop from Frida
49 stars 21 forks source link

Fix `- respondsToSelector:` for optional protocol methods #43

Closed hot3eed closed 3 years ago

hot3eed commented 3 years ago

Since proxies can implement optional methods in a protocol that the target doesn't implement (or any method in general, not necessarily a protocol-conforming one,) - respondsToSelector: should check that the proxy has this method before the call is forwarded to the target.